wishthis/semantic/tasks/collections/build.js

31 lines
928 B
JavaScript
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*******************************
* Define Build Sub-Tasks
*******************************/
2023-08-17 09:47:40 +00:00
const
watch = require('../watch'),
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
// build sub-tasks
build = require('../build'),
buildJS = require('../build/javascript'),
buildCSS = require('../build/css'),
buildAssets = require('../build/assets')
;
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
module.exports = function (gulp) {
gulp.task('watch', watch);
gulp.task('watch').description = 'Watch for site/theme changes';
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
gulp.task('build', build);
gulp.task('build').description = 'Builds all files from source';
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
gulp.task('build-javascript', buildJS);
gulp.task('build-javascript').description = 'Builds all javascript from source';
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
gulp.task('build-css', buildCSS);
gulp.task('build-css').description = 'Builds all css from source';
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
gulp.task('build-assets', buildAssets);
gulp.task('build-assets').description = 'Copies all assets from source';
2022-01-13 13:00:31 +00:00
};