Skip to content

Commit

Permalink
add scripts to start and stop the env
Browse files Browse the repository at this point in the history
  • Loading branch information
freibergergarcia committed Feb 10, 2024
1 parent 9217896 commit f717bd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"scripts": {
"dev": "npx postcss assets/css/general.css -o assets/css/public/general.css --watch",
"build": "NODE_ENV=production npx postcss assets/css/general.css -o assets/css/public/general.css",
"test-php": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename $(pwd)) vendor/bin/phpunit -c phpunit.xml.dist --verbose",
"start-env": "wp-env start",
"stop-env": "wp-env stop",
"test-php": "npm run start-env && wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename $(pwd)) vendor/bin/phpunit -c phpunit.xml.dist --verbose && npm run stop-env",
"wp-env": "wp-env"
}
}

0 comments on commit f717bd2

Please sign in to comment.