diff --git a/app/bin/zip.sh b/app/bin/zip.sh index f5d1c33b..05b1662b 100644 --- a/app/bin/zip.sh +++ b/app/bin/zip.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash +rm -rf wprepository yarn run gulp wprepository cd wprepository composer install --no-dev +cd ../ yarn run gulp zip diff --git a/gulpfile.js b/gulpfile.js index e313f2af..369c3c90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -175,6 +175,7 @@ gulp.task('wprepository', ['build'], function(){ return gulp.src( [ '**/*', + '!package.json', '!node_modules', '!node_modules/**', '!vendor', @@ -207,7 +208,6 @@ gulp.task('zip', function(){ return gulp.src( [ 'wprepository/**', - '!wprepository/package.json', '!wprepository/composer.json', '!wprepository/composer.lock', '!wprepository/yarn.lock',