cleaning build process

This commit is contained in:
Leo Germani 2019-06-19 06:12:54 -03:00
parent 7f0f5d5920
commit c807bf8e35
2 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@ new_md5_package=$(<last-package-build.md5)
if [ "$current_md5_package" != "$new_md5_package" ]
then
## Install js dependencies
npm install
npm ci
fi
new_md5_composer=$(<last-composer-build.md5)
@ -68,7 +68,9 @@ rm -rf $wp_plugin_dir
mkdir $wp_plugin_dir
rsync -axz --exclude='vendor/bin/phpc*' --exclude='vendor/squizlabs' --exclude='vendor/wimg' \
--exclude='vendor/respect/validation/.git' --exclude='vendor/symfony/polyfill-mbstring/.git' --exclude='pdf-viewer/pdfjs-dist/web/compressed.tracemonkey-pldi-09.pdf' \
--exclude='vendor/respect/validation/.git' --exclude='vendor/symfony/polyfill-mbstring/.git' \
--exclude='vendor/respect/validation/docs' --exclude='vendor/respect/validation/tests' \
--exclude='pdf-viewer/pdfjs-dist/web/compressed.tracemonkey-pldi-09.pdf' \
src/* $wp_plugin_dir/
rm -rf $wp_plugin_dir/scss

View File

@ -25,7 +25,7 @@ You wil also need:
* `Sass` to compile sass into css files
* `WP-Cli` to configure the test environment
* `Phpunit` to run unit tests
* `Node` to handle dependencies and vuild the JS application
* `Node` to handle dependencies and vuild the JS application (at least version 5.7.0)
```
sudo apt-get install phpunit composer ruby ruby-dev nodejs npm