-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
42 lines (42 loc) · 1.57 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"version": "1.0.0",
"scripts": {
"watch": "concurrently \"npm:watch:*\"",
"build": "npm run clean && npm run build:assets && npm run build:blocks",
"clean": "rimraf ./build",
"lint": "concurrently \"npm:lint:*\"",
"build:assets": "npm run clean:assets && npx wp-scripts build editor=./assets/js/editor frontend=./assets/js/frontend --output-path=./build/assets",
"watch:assets": "npm run clean:assets && npm run build:assets -- --watch",
"clean:assets": "rimraf ./build/assets",
"build:blocks": "npm run clean:blocks && wp-scripts build --webpack-src-dir='./blocks' --output-path='./build/blocks' --webpack-copy-php",
"watch:blocks": "npm run clean:blocks && wp-scripts start --webpack-src-dir='./blocks' --output-path='./build/blocks' --webpack-copy-php",
"clean:blocks": "rimraf ./build/blocks",
"create:block": "cd ./blocks && npx @wordpress/create-block@latest --template ./_template --no-plugin",
"lint:css": "npx wp-scripts lint-style",
"lint:js": "npx wp-scripts lint-js",
"env:start": "npx wp-env start",
"env:stop": "npx wp-env stop"
},
"dependencies": {
"@wordpress/dom-ready": "^3.40.0"
},
"devDependencies": {
"@wordpress/env": "^7.0.0",
"@wordpress/prettier-config": "^2.16.0",
"@wordpress/scripts": "^26.18.0",
"concurrently": "^8.2.2",
"postcss-import": "^15.1.0",
"postcss-import-ext-glob": "^2.1.1",
"postcss-nested": "^6.0.1",
"rimraf": "^5.0.1"
},
"prettier": "@wordpress/prettier-config",
"postcss": {
"plugins": {
"postcss-import-ext-glob": {},
"postcss-import": {},
"postcss-nested": {},
"autoprefixer": {}
}
}
}