load-gulp-aliases
v0.0.2
Published
Create gulp tasks & sequences from aliases
Downloads
4
Readme
Load Gulp Aliases
Create gulp tasks & sequences from aliases
Installation
npm i load-gulp-aliases --save-dev
Example Usage
Inside your gulpfile.js
:
const gulp = require('gulp');
const aliases = {
default: [ 'task1' ],
task1: [ 'task:sync-a', 'task:sync-b', 'task:sync-c']
}
require('load-gulp-aliases')(gulp, aliases);
You can also map parallel & synchronous tasks together using objects & arrays:
const aliases = {
parallel: [
[ 'task:parallel-a', 'task:parallel-b' ]
],
mixture: [
'task:sync-a',
[
'task:parallel-a',
'task:parallel-b'
],
'task:sync-b',
'task:sync-c'
]
}
The above example in YAML format (convert this to JSON & provide to module):
parallel:
-
- task:parallel-a
- task:parallel-b
mixture:
- task:sync-a
-
- task:parallel-a
- task:parallel-b
- task:sync-b
- task:sync-c