I have a project that was using Grunt. I am moving it to use Gulp. My Grunt implementation was like this:
gruntfile.js
/e2e
page.e2e.js
/tasks
e2e.js
/configuration
clean.js
concat.js
I have this approach working in Grunt. However, I now want to mimic this approach in Gulp. At this time, I have the following in Gulpfile.js
gulpfile.js
'use strict';
var gulp = require('gulp');
var tasks = require('gulp-load-tasks')('tasks');
Then, in e2e.js, I have the following:
e2e.js
var gulp = require('gulp');
var rimraf = require('gulp-rimraf');
gulp.task('clean, function(cb) {
console.log('here');
});
When I run gulp
from the command-line, I get an error that says: "Error: Task e2e can't support dependencies that is not an array of strings." I'm not sure how to fix this. I haven't even gotten to the part where I'm putting the definition of the clean task in /tasks/configuration/clean.js.
Thank you for any insights you can provide!
You have an error in the code:
You forgot to close the string
'clean
.