Compare commits

...

2 Commits
2.1.4 ... 2.1.5

Author SHA1 Message Date
73bd9c630e Upgrading Casper to 2.1.5 2017-10-24 16:10:48 +07:00
9597a28320 🎨 Optimized gulp zip file generation (#403)
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)
2017-10-23 16:52:52 +07:00
2 changed files with 7 additions and 2 deletions

View File

@ -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));
});

View File

@ -2,7 +2,7 @@
"name": "casper",
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
"demo": "https://demo.ghost.io",
"version": "2.1.4",
"version": "2.1.5",
"engines": {
"ghost": ">=1.2.0"
},