Proof-of-concept custom registry that pre-defines tasks.
var gulp = require('gulp');
var CommonTasks = require('undertaker-common-tasks');
gulp.registry(new CommonTasks({ port: 1337, buildDir: './dist' }));
// 'clean' & 'series' were defined by the registry
gulp.task('default', gulp.series('clean', 'serve'));
Constructor for the registry. Pass an instance of this registry to gulp.registry
.
port
- the port to start a static webserver on.buildDir
- the output directory (clean deletes this directory).
MIT