2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-24 11:05:26 +00:00
nativefier/gulp/build/build-static.js

17 lines
485 B
JavaScript
Raw Normal View History

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