gulp-assembly-utils
v1.0.1
Published
Utils for gulp assembly package.
Downloads
19
Readme
gulp-assembly-utils
Collection of utility function for gulp-assembly package...
Usage:
const config = {
dest: '/var/www/dest/assets',
alias: {
// ...
},
sourcemaps: {},
uglify: {},
cssnano: {}
};
const utils = $.assemblyUtils(config);
Option list:
dest
-- mandatory destination folder, for example:/home/www/web/assets
.alias
-- optional collection of aliases forutils.src
(gulp.src
), for example:{ // JS: 'h5bp-plugins': 'html5-boilerplate/dist/js/plugins', 'opentip': [ 'opentip/downloads/opentip-jquery', 'opentip/lib/adapter-jquery' ], 'jquery-ui-selectable': [ 'jquery-ui/ui/core', 'jquery-ui/ui/widget', 'jquery-ui/ui/mouse', 'jquery-ui/ui/selectable' ], // CSS: 'css-opentip': 'opentip/css/opentip.css', 'css-sweetalert': 'sweetalert2/dist/sweetalert2.css', 'css-ui-select': 'ui-select/dist/select.css', 'css-angular-tree-control': [ 'angular-tree-control/css/tree-control.css', 'angular-tree-control/css/tree-control-attribute.css', ] }
sourcemaps
-- optionalgulp-sourcemaps
config object.uglify
-- optionalgulp-uglify
config object.cssnano
-- optionalgulp-cssnano
config object.
Utils API:
argv
-- minimist results.src()
-- wrapper forgulp.src()
.dest()
-- wrapper forgulp.dest()
.isNoJs()
-- is used-J
console option.isNoCss()
-- is used-C
console option.isNoWatch()
-- is used-W
console option.isMinify()
-- is used--min
console option.