UNPKG

928 BJavaScriptView Raw
1/*******************************
2 * Define Build Sub-Tasks
3 *******************************/
4
5const
6 watch = require('../watch'),
7
8 // build sub-tasks
9 build = require('../build'),
10 buildJS = require('../build/javascript'),
11 buildCSS = require('../build/css'),
12 buildAssets = require('../build/assets')
13;
14
15module.exports = function (gulp) {
16 gulp.task('watch', watch);
17 gulp.task('watch').description = 'Watch for site/theme changes';
18
19 gulp.task('build', build);
20 gulp.task('build').description = 'Builds all files from source';
21
22 gulp.task('build-javascript', buildJS);
23 gulp.task('build-javascript').description = 'Builds all javascript from source';
24
25 gulp.task('build-css', buildCSS);
26 gulp.task('build-css').description = 'Builds all css from source';
27
28 gulp.task('build-assets', buildAssets);
29 gulp.task('build-assets').description = 'Copies all assets from source';
30};