mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-29 01:30:16 +02:00
gulp: fix release task
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
### builds
|
### builds
|
||||||
|
app
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
_site
|
_site
|
||||||
|
@@ -174,6 +174,7 @@ gulp.task('generate-service-worker', function(callback) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('packageExtension', function() {
|
gulp.task('packageExtension', function() {
|
||||||
|
child_process.execSync('rm -rf extension');
|
||||||
child_process.execSync('cp -R app extension');
|
child_process.execSync('cp -R app extension');
|
||||||
child_process.execSync('cp src/manifest.json extension');
|
child_process.execSync('cp src/manifest.json extension');
|
||||||
child_process.execSync('cp src/options.js extension');
|
child_process.execSync('cp src/options.js extension');
|
||||||
@@ -218,7 +219,7 @@ gulp.task('start-preview-server', function() {
|
|||||||
|
|
||||||
gulp.task('release', function(callback) {
|
gulp.task('release', function(callback) {
|
||||||
runSequence(
|
runSequence(
|
||||||
'runWebpack',
|
['runWebpack', 'buildWebsite'],
|
||||||
'copyFiles',
|
'copyFiles',
|
||||||
'fixIndex',
|
'fixIndex',
|
||||||
'useRef',
|
'useRef',
|
||||||
@@ -226,6 +227,7 @@ gulp.task('release', function(callback) {
|
|||||||
'minify',
|
'minify',
|
||||||
'generate-service-worker',
|
'generate-service-worker',
|
||||||
'packageExtension',
|
'packageExtension',
|
||||||
|
'buildDistFolder',
|
||||||
'cleanup',
|
'cleanup',
|
||||||
function(error) {
|
function(error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Reference in New Issue
Block a user