Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
Last active April 16, 2021 01:39
Show Gist options
  • Save danielwrobert/feed9becda0ab54057c222f30d307ef9 to your computer and use it in GitHub Desktop.
Save danielwrobert/feed9becda0ab54057c222f30d307ef9 to your computer and use it in GitHub Desktop.
@wordpress/env Script Settings (package.json)
{
"name": "project-name",
"version": "1.0.0",
"description": "",
"author": "",
"license": "GPL-2.0-or-later",
"main": "index.js",
"scripts": {
"env": "WP_ENV_HOME=\"wp-env\" wp-env",
"env:logs": "npm run env logs",
"env:start": "npm run env start",
"env:stop": "npm run env stop",
"env:destroy": "npm run env destroy",
"env:cleanup": "docker volume prune -f && rm -rf ./wp-env",
"wp-env": "wp-env"
},
"devDependencies": {
"@wordpress/env": "^2.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment