-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpackage.json
91 lines (91 loc) · 3.08 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
83
84
85
86
87
88
89
90
91
{
"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",
"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": "cd plugins && npx @wordpress/create-block@latest --template ../templates/block-examples",
"postcreate-example:new": "pnpm i && npm run table:update",
"table:update": "ts-node _bin/src/index.ts generate",
"table:update:all": "ts-node _bin/src/index.ts generate all",
"dates:update": "ts-node _bin/src/index.ts dates",
"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/dist"
},
"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",
"@types/markdown-table": "^2.0.0",
"@types/node": "^22.10.2",
"@wordpress/env": "^8.11.0",
"@wordpress/scripts": "^27.8.0",
"clean-webpack-plugin": "^4.0.0",
"gh-pages": "^6.1.1",
"husky": "^8.0.0",
"lint-staged": "^13.2.0",
"nodemon": "^2.0.22",
"prettier-eslint": "^16.3.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"webpack": "^5.97.1",
"webpack-cli": "^4.10.0",
"webpack-node-externals": "^3.0.0"
},
"dependencies": {
"@inquirer/prompts": "^3.1.1",
"chalk": "4.1.1",
"commander": "9.2.0",
"copyfiles": "^2.4.1",
"date-fns": "^4.1.0",
"eslint-plugin-jest": "^28.5.0",
"execa": "4.0.2",
"express": "^4.17.1",
"fs-extra": "^11.1.1",
"make-dir-cli": "^3.1.0",
"markdown-table": "2",
"replace-in-file": "^7.0.1",
"rimraf": "^5.0.1"
}
}