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:
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
.DS_Store
|
||||
|
||||
### builds
|
||||
app
|
||||
build
|
||||
dist
|
||||
_site
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user