Skip to content

Commit

Permalink
🎨 Optimized gulp zip file generation (#403)
Browse files Browse the repository at this point in the history
no issue

- Optimised the `gulp zip` task, so the zip file doesn't include the `assets/css` (`built` folder is used for CSS) and the `dist` folder (is used to output the zip file)
  • Loading branch information
matitalatina authored and aileen committed Oct 23, 2017
1 parent 4616398 commit 9597a28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ gulp.task('zip', ['css'], function() {
var themeName = require('./package.json').name;
var filename = themeName + '.zip';

return gulp.src(['**', '!node_modules', '!node_modules/**'])
return gulp.src([
'**',
'!node_modules', '!node_modules/**',
'!dist', '!dist/**',
'!assets/css', '!assets/css/**',
])
.pipe(zip(filename))
.pipe(gulp.dest(targetDir));
});
Expand Down

0 comments on commit 9597a28

Please sign in to comment.