Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Last active June 20, 2016 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remarkablemark/3b0ba33f50deda729e9b82d2e6fa0d6c to your computer and use it in GitHub Desktop.
Save remarkablemark/3b0ba33f50deda729e9b82d2e6fa0d6c to your computer and use it in GitHub Desktop.
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