mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-28 09:10:17 +02:00
create single folder with website and app
This commit is contained in:
15
gulpfile.js
15
gulpfile.js
@@ -194,6 +194,20 @@ gulp.task('packageExtension', function() {
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('buildDistFolder', function() {
|
||||
child_process.execSync('mkdir dist');
|
||||
child_process.execSync('cp index.html dist/');
|
||||
child_process.execSync('cp -R uninstall dist/');
|
||||
child_process.execSync('cp -R privacy-policy dist/');
|
||||
child_process.execSync('cp -R icons dist/');
|
||||
child_process.execSync('cp -R docs dist/');
|
||||
child_process.execSync('cp -R chrome-logo.png dist/');
|
||||
child_process.execSync('mv app dist/');
|
||||
child_process.execSync('cp ss1.png dist/');
|
||||
child_process.execSync('cp icon-128.png dist/');
|
||||
child_process.execSync('cp manifest.json dist/');
|
||||
});
|
||||
|
||||
gulp.task('cleanup', function() {
|
||||
return child_process.execSync('rm -rf build');
|
||||
});
|
||||
@@ -236,6 +250,7 @@ gulp.task('dev-release', function(callback) {
|
||||
'useRef',
|
||||
'concatSwRegistration',
|
||||
'generate-service-worker',
|
||||
'buildDistFolder',
|
||||
'cleanup',
|
||||
function(error) {
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user