gulpfile.js and other files are put in “tools” directory. Now I compile *.js under “builds” directory that is the same level as “tools” directory, but the compilation does not work.
// tools/gulpfile.js
// doesn't work
gulp.task('test', function () {
gulp.src("../builds/*.js")
.pipe(babel())
.pipe(gulp.dest('../builds'));
})
// work
gulp.task('test', function () {
gulp.src("./*.js")
.pipe(babel())
.pipe(gulp.dest('./'));
})
gulpfile.js and other files are put in “tools” directory. Now I compile *.js under “builds” directory that is the same level as “tools” directory, but the compilation does not work.
// tools/gulpfile.js