33 lines
941 B
JavaScript
33 lines
941 B
JavaScript
|
/*******************************
|
||
|
* Define Build Sub-Tasks
|
||
|
*******************************/
|
||
|
|
||
|
module.exports = function (gulp) {
|
||
|
|
||
|
// build sub-tasks
|
||
|
const
|
||
|
watch = require('./../watch'),
|
||
|
|
||
|
build = require('./../build'),
|
||
|
buildJS = require('./../build/javascript'),
|
||
|
buildCSS = require('./../build/css'),
|
||
|
buildAssets = require('./../build/assets')
|
||
|
;
|
||
|
|
||
|
gulp.task('watch', watch);
|
||
|
gulp.task('watch').description = 'Watch for site/theme changes';
|
||
|
|
||
|
gulp.task('build', build);
|
||
|
gulp.task('build').description = 'Builds all files from source';
|
||
|
|
||
|
gulp.task('build-javascript', buildJS);
|
||
|
gulp.task('build-javascript').description = 'Builds all javascript from source';
|
||
|
|
||
|
gulp.task('build-css', buildCSS);
|
||
|
gulp.task('build-css').description = 'Builds all css from source';
|
||
|
|
||
|
gulp.task('build-assets', buildAssets);
|
||
|
gulp.task('build-assets').description = 'Copies all assets from source';
|
||
|
|
||
|
};
|