-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
23 lines (23 loc) · 1.11 KB
/
package.json
File metadata and controls
23 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"name": "demo-plugin",
"devDependencies": {
"@wordpress/env": "^10.18.0",
"@wordpress/scripts": "^30.20.0"
},
"scripts": {
"start": "wp-scripts start --blocks-manifest",
"build": "wp-scripts build --blocks-manifest",
"lint:style": "wp-scripts lint-style 'resources/**/*.{css,scss,sass}'",
"lint:js": "wp-scripts lint-js ./resources",
"lint:fix:js": "wp-scripts lint-js ./resources --fix",
"lint:fix:style": "wp-scripts lint-style 'resources/**/*.{css,scss,sass}' --fix",
"format": "wp-scripts format ./resources",
"packages-update": "wp-scripts packages-update",
"create-block": "bash -lc \"mkdir -p src/Blocks && cd src/Blocks && npx @wordpress/create-block --no-plugin --namespace=demo-plugin --textdomain=demo-plugin\"",
"env:start": "wp-env start --update",
"env:stop": "wp-env stop",
"env:destroy": "wp-env destroy",
"env:cli": "wp-env run cli --env-cwd=wp-content/plugins/demo-plugin",
"test:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/demo-plugin bash -lc 'composer install --working-dir=tests --no-interaction && vendor/bin/phpunit'"
}
}