From 776d4b1895094f47aaa8b3255098ae8972fba5df Mon Sep 17 00:00:00 2001 From: Tim Nolte Date: Wed, 9 Sep 2020 22:26:09 -0400 Subject: [PATCH] Improve Local Dev Setup by Reducing Setup Commands (#226) * Improve Local Dev Setup by Reducing Setup Commands * Adds Code Owners Configuration for Pull Requests --- .github/CODEOWNERS | 2 ++ .gitignore | 1 + package.json | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..19a579c --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# The default owners for everything in the repo. +* @daggerhart @timnolte diff --git a/.gitignore b/.gitignore index 374ac51..64fd9bd 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ # Local Development files/folders. .env +.wp-env.override.json phpcs.xml phpstan.neon phpunit.xml diff --git a/package.json b/package.json index da63705..14384d4 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,10 @@ "welcome-build-command": "npm run env start" }, "scripts": { + "setup": "composer install && npm install && cd wordpress && composer install && npm install && npm run build && cd .. && composer install --optimize-autoloader", + "start": "wp-env start", + "stop": "wp-env stop", + "restart": "npm run wp-env stop && npm run wp-env start", "grunt": "node_modules/.bin/grunt", "test": "npm run grunt test", "build": "npm run grunt build",