Browse Source

🐛 Modify babel to zip with folder tree

pull/5/head 0.0.2.2
Clement Desmidt 3 years ago
parent
commit
5177b67480
  1. 7
      gulpfile.babel.js

7
gulpfile.babel.js

@ -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…
Cancel
Save