Skip to content

gulpjs/undertaker-common-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aff874f · May 23, 2023

History

26 Commits
Jun 28, 2022
Jun 28, 2022
Jun 28, 2022
Jun 28, 2022
Oct 26, 2015
Aug 19, 2017
Jun 28, 2022
Jun 28, 2022
Jun 28, 2022
Jun 28, 2022
Jun 28, 2022
May 23, 2023
Jun 28, 2022
Jun 28, 2022

Repository files navigation

undertaker-common-tasks

NPM version Downloads Build Status Coveralls Status

Proof-of-concept custom registry that pre-defines tasks.

Example

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'));

API

CommonTasksRegistry([options])

Constructor for the registry. Pass an instance of this registry to gulp.registry.

options

  • port - the port to start a static webserver on.
  • buildDir - the output directory (clean deletes this directory).

License

MIT