🐛 Modify babel to zip with folder tree

This commit is contained in:
Clement Desmidt 2018-12-07 23:47:03 +01:00
parent 5a1d2e8457
commit 5177b67480

View File

@ -6,6 +6,7 @@ import source from 'vinyl-source-stream';
import buffer from 'vinyl-buffer'; import buffer from 'vinyl-buffer';
import preprocessify from 'preprocessify'; import preprocessify from 'preprocessify';
import gulpif from "gulp-if"; import gulpif from "gulp-if";
import zip from "gulp-zip";
const $ = require('gulp-load-plugins')(); const $ = require('gulp-load-plugins')();
@ -43,8 +44,10 @@ gulp.task('clean', () => {
gulp.task('sourcezip', () => { gulp.task('sourcezip', () => {
gulp gulp
.src(['src/**', 'config/**', 'package.json', 'gulpfile.babel.js', '.babelrc']) // src/**', 'config/**', 'package.json', 'gulpfile.babel.js', '.babelrc
.pipe($.zip('source.zip')) // .src(['**/*', '!dist/', '!node_modules', '!build', '!resources', '!.*', '!LICENSE.txt', '!privacy_policy.md', '!README.md'])
.src(['src/**', 'config/**', 'package.json', 'gulpfile.babel.js', '.babelrc'], {base: '.'})
.pipe(zip('source.zip'))
.pipe(gulp.dest('dist/')); .pipe(gulp.dest('dist/'));
}); });