audio-vis/build/gulpfile.js

24 lines
872 B
JavaScript
Raw Normal View History

2020-04-07 21:44:46 +02:00
const gulp = require('gulp'),
spriteBuild = require('./task/spriteBuilder').buildIconSprites,
scss = require('./task/scss').buildCSS,
js = require('./task/js').build,
2020-08-06 23:44:37 +02:00
gui = require('./task/jsonMinifier').build,
worker = require('./task/worker').build;
2020-04-07 21:44:46 +02:00
gulp.task('scss', scss);
gulp.task('js', js);
gulp.task('sprite', spriteBuild);
gulp.task('gui', gui);
2020-08-06 23:44:37 +02:00
gulp.task('workerJS', worker);
2020-04-07 21:44:46 +02:00
gulp.task('watchMe', () => {
gulp.watch('./../raw/javascript/**/*.js', gulp.series('js'));
2020-08-06 23:44:37 +02:00
gulp.watch('./../raw/worker/**/*.js', gulp.series('workerJS'));
2020-04-07 21:44:46 +02:00
gulp.watch('./../raw/scss/**/*.scss', gulp.series('scss'));
gulp.watch('./../raw/gui/**/*.json', gulp.series('gui'));
});
2020-08-06 23:44:37 +02:00
gulp.task('default', gulp.parallel('js', 'scss', 'sprite', 'gui', 'workerJS'));
2020-04-07 21:44:46 +02:00
2020-08-06 23:44:37 +02:00
gulp.task('watch', gulp.parallel('js', 'scss', 'sprite', 'gui', 'workerJS', 'watchMe'));