Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Last active Jun 20, 2016
Embed
What would you like to do?
Modularizing gulp.
'use strict';
const gulp = require('gulp');
gulp.task('copy', () => {
return gulp
.src('./hello.js')
.pipe(gulp.dest('./copy/'));
});
'use strict';
require('./hello');
require('./copy')
// install gulp globally and locally with `npm i gulp -g & npm i gulp`
// run `gulp -T` to see your tasks
'use strict';
const gulp = require('gulp');
gulp.task('hello', () => {
console.log('Hello, world!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment