I have the following gulp task:
// Compile ES6 to ES5 and copy to dist
gulp.task('babel', () =>
gulp.src([...paths.js, '!gulpfile.babel.js'], { base: '.' })
.pipe(plugins.newer('dist'))
.pipe(plugins.sourcemaps.init())
.pipe(plugins.babel())
.pipe(plugins.sourcemaps.write('.', {
includeContent: false,
sourceRoot(file) {
return path.relative(file.path, __dirname);
}
}))
.pipe(gulp.dest('dist'))
);
According to the Gulp Doc(gulp.src) I learnt that gulp.src
emits files matching provided glob or array of globs.
But I can't understand the meaning of '...paths.js' here.
There is no file named with 'paths.js' in the project directory.
Is there anybody who can help me to understand it?