Add docker:build-package command

This allows to build a package using the docker env,
which should be more consistent and allows to easily use
the needed PHP version (e.g. the min supported) 
instead of the system PHP.
This commit is contained in:
Alex P 2022-01-03 17:05:40 +02:00
parent 3eb784bc2b
commit 16c77ebf95
2 changed files with 6 additions and 0 deletions

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 {} +",