cleaning build process
This commit is contained in:
parent
7f0f5d5920
commit
c807bf8e35
6
build.sh
6
build.sh
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue