2016-02-27 17:45:44 +01:00
|
|
|
import gulp from 'gulp';
|
|
|
|
import PATHS from './../helpers/src-paths';
|
2016-02-27 18:07:52 +01:00
|
|
|
import helpers from './../helpers/gulp-helpers';
|
2016-02-27 17:45:44 +01:00
|
|
|
|
2017-04-29 16:52:12 +02:00
|
|
|
const { buildES6 } = helpers;
|
2016-02-27 17:45:44 +01:00
|
|
|
|
2017-04-29 16:52:12 +02:00
|
|
|
gulp.task('build-static-not-js', () => gulp.src([PATHS.APP_STATIC_ALL, '!**/*.js'])
|
|
|
|
.pipe(gulp.dest(PATHS.APP_STATIC_DEST)));
|
2016-02-27 17:45:44 +01:00
|
|
|
|
2017-04-29 16:52:12 +02:00
|
|
|
gulp.task('build-static-js', done => buildES6(PATHS.APP_STATIC_JS, PATHS.APP_STATIC_DEST, done));
|
2016-02-27 17:45:44 +01:00
|
|
|
|
|
|
|
gulp.task('build-static', ['build-static-js', 'build-static-not-js']);
|