Browse Source

🐛 Modify babel to zip with folder tree

tags/0.0.2.2
Clement Desmidt 1 year ago
parent
commit
5177b67480
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      gulpfile.babel.js

+ 5
- 2
gulpfile.babel.js View File

@@ -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