javascript - Using gulp-load-tasks in a gulpfile -


i have project using grunt. moving use gulp. grunt implementation this:

gruntfile.js /e2e   page.e2e.js /tasks   e2e.js   /configuration     clean.js     concat.js 

i have approach working in grunt. however, want mimic approach in gulp. @ time, have following in gulpfile.js

gulpfile.js

'use strict';  var gulp = require('gulp'); var tasks = require('gulp-load-tasks')('tasks'); 

then, in e2e.js, have following:

e2e.js

var gulp = require('gulp'); var rimraf = require('gulp-rimraf');  gulp.task('clean, function(cb) {   console.log('here'); }); 

when run gulp command-line, error says: "error: task e2e can't support dependencies not array of strings." i'm not sure how fix this. haven't gotten part i'm putting definition of clean task in /tasks/configuration/clean.js.

thank insights can provide!

you have error in code:

gulp.task('clean, function(cb) {   console.log('here'); }); 

you forgot close string 'clean.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -