1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-10 19:50:51 +02:00

gulp: fix release task

This commit is contained in:
Kushagra Gour
2019-03-15 17:21:30 +05:30
parent 6724b7c90b
commit cd9d3dd686
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
.DS_Store
### builds
app
build
dist
_site

View File

@ -174,6 +174,7 @@ gulp.task('generate-service-worker', function(callback) {
});
gulp.task('packageExtension', function() {
child_process.execSync('rm -rf extension');
child_process.execSync('cp -R app extension');
child_process.execSync('cp src/manifest.json extension');
child_process.execSync('cp src/options.js extension');
@ -218,7 +219,7 @@ gulp.task('start-preview-server', function() {
gulp.task('release', function(callback) {
runSequence(
'runWebpack',
['runWebpack', 'buildWebsite'],
'copyFiles',
'fixIndex',
'useRef',
@ -226,6 +227,7 @@ gulp.task('release', function(callback) {
'minify',
'generate-service-worker',
'packageExtension',
'buildDistFolder',
'cleanup',
function(error) {
if (error) {