Organises your gulp tasks into groups of tasks,
Group destination can filter down to tasks if you don't override it.
Group sources filter up so you can access all group sources programatically.
:watch task can be added to groups, or tasks. This will monitor the src files
and build as needed.
Async sequences can be applied to a group to run sub tasks in order.
npm install deployable-assets --save-dev yarn add deployable-assets --dev
Note: Adding the type of gulp task must always be the last step of a task chain. This step builds a gulp task from the previously set varaibles.
const Gulp =const gulp = Gulplet gulp_def =let group = gulp_def// Run a commandgroup// Copy filesgroup// Sassgroup// Custom task, still in a grouplet task = grouptask// Add a group task so `gulp sitecss` worksgroup
This builds the tasks group
be attached to a group. The tasks are available to run as
sitecss:buildit in gulp.
sitecss task will automatically run all tasks in the
You can control the sequence
of events with
The package provides the Deployable Assets gulp setup as a class which includes jquery, bootstrap, bootstrap-sass, babel and the pre defined tasks to build sources into assets.
const DeployableGulp =let gulp_def =
The following tasks are provided
gulp bower # bower + copygulp js # babelgulp js:babelgulp css # sassgulp css:sass # sassgulp assets # bower + js + cssgulp assets:watch # long running wathcing build
The deployable-asset package provides helper functionsto use in your application to refernce assets. All references to your asset paths should be replaced by the helper so assets can be served from any location, including the possibiilty of moving them to a CDN.
const assetHelpers = prefix: ''assetHelpers // =>assetHelpers // =>assetHelpers // =>
let glp = new Gulp() let group = glp.addGroup('sitecss') group.task('testTask') .addSrc('bower_components/jquery/dist/*.js') .setDest('public/js') .addCopyTask()
deployable-assets is released under the MIT license.
Copyright 2016 Matt Hoyle - code aatt deployable.co