0.1.5 • Published 1 year ago

@bliles/plug-pipeline v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Plug

A promise based task runner inspired by the task organization features of gulp.

The goal of this project is to provide a way to organize and run tasks that are simply JS promises in a build pipeline. The project makes no assumptions about the tasks you need to run in your pipeline.

Setup

Create a pipeline.js file with your tasks.

import plug from '@bliles/plug-pipeline';

plug.task('clean', async () => {
    // ...
});

plug.task('build:js', async () => {
    // ...
});

plug.task('build:styles', async () => {
    // ...
});

plug.task('default', plug.series('clean', plug.parallel('build:js', 'build:styles')));

Running your pipeline

Install the package globally to have plug available on the command line.

npm install -g @bliles/plug-pipeline

Then you can simply run plug in the path with your pipeline.js file.

Alternatively you can add an npm script that references the local node_modules:

{
...
  "scripts": {
    "plug": "node ./node_modules/.bin/plug",
  }
...
0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago