-
Notifications
You must be signed in to change notification settings - Fork 33
/
package.json
82 lines (82 loc) · 2.9 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "block-development-examples",
"version": "1.0.0",
"description": "WordPress Block Development Examples",
"main": "index.js",
"scripts": {
"start": "pnpm -r run start",
"build": "pnpm -r run build",
"packages-update": "pnpm -r run packages-update",
"preinstall": "npx only-allow pnpm",
"plugin-zip": "pnpm -r run plugin-zip",
"code:get": "node ./_bin/randomHexCode.js",
"env:start": "wp-env start",
"env:start:debug": "wp-env start --xdebug",
"env:update": "wp-env start --update",
"env:restart": "wp-env destroy && wp-env start --update",
"env:stop": "wp-env stop",
"env:down": "wp-env stop",
"env:destroy": "wp-env destroy",
"env:logs": "wp-env logs all",
"test:e2e": "wp-scripts test-playwright",
"test:e2e:debug": "wp-scripts test-playwright --debug",
"create-example:copy": "node ./_bin/copyGutenbergExample/index.js",
"create-example:new": "cd plugins && npx @wordpress/create-block@latest --template ../templates/block-examples",
"postcreate-example:new": "pnpm i && npm run table:update",
"get:hexcode": "node ./_bin/utils/randomHexCode.js",
"table:update": "node ./_bin/updateTableMarkdown.js",
"table:update:all": "npm run table:update -- all",
"zips:remove": "rimraf --verbose ./plugins/*/@block-development-examples",
"zips:move": "copyfiles --verbose --flat './plugins/**/*.zip' zips",
"deploy": "npm run build && npm run plugin-zip && make-dir zips && npm run zips:move && npm run zips:remove",
"lint": "npm run lint:css && npm run lint:js && npm run lint:php",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:php": "composer lint",
"format:php": "composer fix",
"prepare": "husky install",
"admin:package-json-updates": "pnpm -r exec npx npm-check-updates -u",
"admin:clear:build": "find ./plugins -path './plugins/*/node_modules/*' -prune -o -name 'build' -type d -exec rm -vrf '{}' +",
"admin:clear:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -vrf '{}' +",
"admin:reinstall": "npm run admin:clear:node_modules && pnpm install",
"gh:deploy": "gh-pages -d _app/build"
},
"lint-staged": {
"*.js": [
"wp-scripts lint-js"
],
"*.php": [
"composer run lint"
],
"*.scss": [
"wp-scripts lint-style"
]
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/plugin-transform-class-static-block": "^7.22.11",
"@playwright/test": "^1.44.1",
"@wordpress/env": "^8.11.0",
"@wordpress/scripts": "^27.8.0",
"gh-pages": "^6.1.1",
"husky": "^8.0.0",
"lint-staged": "^13.2.0",
"prettier-eslint": "^16.3.0",
"stylelint-config-prettier": "^9.0.5"
},
"dependencies": {
"@inquirer/prompts": "^3.1.1",
"chalk": "4.1.1",
"commander": "9.2.0",
"copyfiles": "^2.4.1",
"eslint-plugin-jest": "^28.5.0",
"execa": "4.0.2",
"fs-extra": "^11.1.1",
"make-dir-cli": "^3.1.0",
"markdown-table": "2",
"replace-in-file": "^7.0.1",
"rimraf": "^5.0.1"
}
}