Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@technology4growth/gulp-registry

0.0.1 • Public • Published

T4G - Gulp Registry

Common Gulp tasks, to be added via the registry() method in the Gulp 4 API.

Usage

// Require your other modules
// ...
 
var T4GGulpRegistry = require("@technology4growth/gulp-registry");
 
gulp.registry(new T4GGulpRegistry({
  buildDir: "./dist",
  port: 9001
}));
 
// `clean` and `serve` tasks are now available to you!
 
// Define `css`, `images`, and `html` functions
// ...
 
gulp.task(
  "build",
  gulp.series(
    "clean",
    gulp.parallel(css, images, html),
    "serve"
  )
);

Available tasks

clean

Clean the buildDir.

serve

Start a simple HTTP server and serve the buildDir on the specified port.

Keywords

none

install

npm i @technology4growth/gulp-registry

Downloadsweekly downloads

12

version

0.0.1

license

MIT

last publish

collaborators

  • avatar
  • avatar