pylp
v1.0.2
Published
A streamlined task runner designed for simplicity
Downloads
10
Maintainers
Readme
Pylp
A streamlined task runner designed for simplicity.
Compatible with all gulp plugins.
Installation
npm install pylp
Usage
Create a pylp.js
in the root of your project:
const { task, src, dest } = require('pylp');
task('copy-html', function () {
return src('./src/*.html').pipe(dest('./dist'));
});
Run your task using:
pylp copy-html
For custom configurations, use the --config or -c flag:
pylp copy-html --config path/to/customConfig.js
Features
- Flexible task definitions
- Stream-based builds with Vinyl-FS
- Enhanced logging with Winston
API
task([taskName,] fn)
Both a getter and setter for tasks. Read more here
series(taskName || fn...)
Takes a variable amount of strings (taskName) and/or functions (fn) and returns a function of the composed tasks or functions. Read more here
parallel(taskName || fn...)
Takes a variable amount of strings (taskName) and/or functions (fn) and returns a function of the composed tasks or functions. Read more here
src(globs[, options])
Takes a glob string or an array of glob strings as the first argument and an options object as the second. Returns a stream of vinyl File objects. Read more here.
dest(folder[, options])
Takes a folder path string or a function as the first argument and an options object as the second. Read more here.
License
MIT