Merge pull request #419 from woocommerce/docker-build-package

Add docker:build-package command
This commit is contained in:
Emili Castells 2022-01-03 16:10:00 +01:00 committed by GitHub
commit 21aa8980d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,11 @@ follow these steps:
```
$ yarn run build
```
or if using the Docker setup:
```
$ yarn run docker:build-package
```
## Setup

View file

@ -30,6 +30,7 @@
"docker:test": "docker-compose run --rm test vendor/bin/phpunit",
"docker:lint": "docker-compose run --rm test sh -c 'vendor/bin/phpcs --parallel=8 -s && vendor/bin/psalm --show-info=false --threads=8 --diff'",
"docker:fix-lint": "docker-compose run --rm test vendor/bin/phpcbf",
"docker:build-package": "docker-compose run --rm build yarn run build",
"prebuild": "rm -rf ./vendor && find . -name 'node_modules' -type d -maxdepth 3 -exec rm -rf {} +",