gulp-path
Creates file's paths in a simple and organized way
Install
$ npm install --save-dev gulp-path
Basic usage
You can create simple paths, for input and output, as simple as this.
'use strict'; var gulp = ;var sass = ;var gp = ; var app = 'src' 'public';var styles = app; gulp;
You can also create simple blob paths
'use strict'; var gulp = ;var sass = ;var gp = ; var input = gp;var output = gp; gulp;
Documentation
Path(input [, output = input, sub-path = null])
All parameters of Path are waiting a string
or an array
. In that way, you
can have a simple path, multiple paths, or a composed path.
input <String|Array>
A property with the input path(s)
output <String|Array>
A property with the output path(s)
#createSubPath(subPaths)
Creates a new Path
instance based on the previous path.
#generateAllPaths(subPathsInput, subPathsOutput, files, extensions)
Generates all paths, an object that holds input and output only, based on the params and base path.
#generateInput(subPaths, files, extensions)
Generates all input paths based on the params and base path.
#generateOutput(subPaths)
Generates all output paths based on the params and the base path.
generateBlob([bases = './', paths = '', files = '', extensions = ''])
Generates a blob of paths