🐛 Modify babel to zip with folder tree
This commit is contained in:
parent
5a1d2e8457
commit
5177b67480
@ -6,6 +6,7 @@ import source from 'vinyl-source-stream';
|
||||
import buffer from 'vinyl-buffer';
|
||||
import preprocessify from 'preprocessify';
|
||||
import gulpif from "gulp-if";
|
||||
import zip from "gulp-zip";
|
||||
|
||||
const $ = require('gulp-load-plugins')();
|
||||
|
||||
@ -43,8 +44,10 @@ gulp.task('clean', () => {
|
||||
|
||||
gulp.task('sourcezip', () => {
|
||||
gulp
|
||||
.src(['src/**', 'config/**', 'package.json', 'gulpfile.babel.js', '.babelrc'])
|
||||
.pipe($.zip('source.zip'))
|
||||
// src/**', 'config/**', 'package.json', 'gulpfile.babel.js', '.babelrc
|
||||
// .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/'));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user