This repository was archived by the owner on Feb 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathpackage.json
More file actions
54 lines (54 loc) · 2.2 KB
/
package.json
File metadata and controls
54 lines (54 loc) · 2.2 KB
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
{
"name": "abilities-api",
"type": "module",
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "git+https://github.com/WordPress/abilities.git"
},
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
},
"workspaces": [
"packages/*"
],
"devDependencies": {
"@wordpress/env": "^10.31.0",
"@wordpress/eslint-plugin": "^22.17.0",
"@wordpress/prettier-config": "^4.31.0",
"@wordpress/scripts": "^30.24.0",
"rimraf": "^5.0.10",
"typescript": "^5.9.2"
},
"files": [
"docs",
"includes",
"packages/client/build",
"LICENSE.md",
"README.md",
"abilities-api.php"
],
"scripts": {
"plugin-zip": "wp-scripts plugin-zip",
"build": "wp-scripts build --webpack-copy-php=false --config packages/client/webpack.config.js && tsc --project packages/client --emitDeclarationOnly --outDir packages/client/build-types",
"dev": "wp-scripts start --webpack-copy-php=false --config packages/client/webpack.config.js",
"clean": "rimraf packages/client/{build,build-module,build-types,tsconfig.tsbuildinfo}",
"format": "wp-scripts format",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ composer run-script lint",
"lint:php:fix": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ composer run-script format",
"lint:php:stan": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ composer run-script phpstan",
"lint:all": "npm run lint:php && npm run lint:js && npm run typecheck",
"typecheck": "tsc --project packages/client --noEmit",
"test:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ vendor/bin/phpunit -c phpunit.xml.dist",
"test:client": "wp-scripts test-unit-js --config packages/client/jest.config.js",
"test:client:watch": "npm run test:client -- --watch",
"test:client:coverage": "npm run test:client -- --coverage",
"test:client:debug": "wp-scripts --inspect-brk test-unit-js --config packages/client/jest.config.js --runInBand --no-cache",
"test:all": "npm run test:php && npm run test:client",
"prepublishOnly": "npm run clean && npm run build",
"wp-env": "wp-env"
}
}