src()
and dest()
methods for interacting with files on your computer. When src()
is given a glob to read from the file system, it returns a Node stream. It finds all matched files and reads them into memory so that they can be passed over the stream.const { src, dest } = require('gulp');
exports.default = function() {
return src('src/*.js')
.pipe(dest('output/'));
}​