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