gulp-dynamic/gulpfile.js
2021-02-17 12:23:08 +01:00

18 lines
477 B
JavaScript

const gulp = require('gulp'),
config = require('./tools/buildConfig'),
smartJS = require('./task/smartjs'),
smartCss = require('./task/smartcss');
config.prepare();
smartJS.prepare(config);
smartCss.prepare(config);
gulp.task('watchMe', () => {
smartJS.startWatch();
smartCss.startWatch();
});
gulp.task('default', gulp.parallel([...smartJS.build(), ...smartCss.build()]));
gulp.task('watch', gulp.parallel(['watchMe', ...smartJS.build(), ...smartCss.build()]));