1
0
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:
Kushagra Gour
2019-02-28 22:53:29 +05:30
parent 1103950696
commit 52138ada4a
2 changed files with 17 additions and 2 deletions

View File

@@ -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) {