Add dockers docs and yarn commands

This commit is contained in:
Alex P 2021-08-19 17:49:54 +03:00
parent 869281d81f
commit 6aa0f17bca
2 changed files with 35 additions and 0 deletions

View file

@ -14,6 +14,19 @@
"build:modules": "yarn run build:modules:ppcp-button && yarn build:modules:ppcp-wc-gateway",
"build:dev": "yarn run install:modules && yarn run build:modules",
"docker:build": "docker-compose build",
"docker:start": "docker-compose up -d wp_dev",
"docker:stop": "docker-compose down",
"docker:destroy": "docker-compose down -v",
"docker:logs": "docker-compose logs",
"docker:shell": "docker-compose run --rm wp_dev bash",
"docker:install": "docker-compose run --rm composer composer install && yarn run docker:build-js",
"docker:build-js": "docker-compose run --rm build yarn run build:dev",
"docker:composer-update": "docker-compose run --rm composer composer update",
"docker:test": "docker-compose run --rm test vendor/bin/phpunit",
"docker:lint": "docker-compose run --rm test vendor/bin/phpcs --parallel=8 -n -s",
"docker:fix-lint": "docker-compose run --rm test vendor/bin/phpcbf",
"prebuild": "rm -rf ./vendor",
"build": "composer install --no-dev && npm run build:dev && npm run archive",
"prearchive": "rm -rf $npm_package_name.zip",