gulp-target
Merge multiple directories by dependencies to build WL or variants of the project.
Install
$ npm install --save-dev gulp-target
Usage
Base project structure
/targets/targets/targetA - dir of the target `targetA`/targets/targetB - dir of the target `targetB`
Target must have target.json
file. These config is using for merge process.
Example:
Adding this into your Gulpfile.js
:
var gulp = ;var target = ;
Sample usage
gulp;
Merging files
gulp
target.json
dependencies
- are the names of the folders inside targetFolder
. They will be included by order in the target.json
.
Options
baseDir
- name of the folder, there targets are located. targets
by default
configName
- name of the target config file. target.json
by default
var currentTarget = 'targetName' baseDir: 'target' configName: 'target.json';