-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 3.9 KB
/
package.json
File metadata and controls
118 lines (118 loc) · 3.9 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "wp-graphql-headless-login",
"engines": {
"node": ">=22.21.1",
"npm": ">=10.9.4"
},
"files": [
"build",
"src",
"vendor",
"vendor-prefixed",
"access-functions.php",
"activation.php",
"deactivation.php",
"LICENSE",
"README.md",
"readme.txt",
"wp-graphql-headless-login.php"
],
"scripts": {
"prepare": "husky",
"analyze-bundles": "npm run build:prod --webpack-bundle-analyzer",
"build:dev": "cross-env NODE_ENV=development npm-run-all build:js 'build:php'",
"build:prod": "npm run clean && cross-env NODE_ENV=production npm-run-all 'build:js' 'build:php -- --optimize-autoloader --no-dev' ",
"build:js": "wp-scripts build --config ./webpack.config.js",
"build:php": "wp-env run cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ -- composer install",
"clean": "rimraf build",
"format": "wp-scripts format",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:js:types": "tsc --noEmit",
"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",
"test:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/$(basename \"$(pwd)\")/ -- vendor/bin/codecept",
"test:js": "vitest run",
"test:js:coverage": "vitest run --coverage",
"test:js:watch": "vitest watch",
"test:js:ui": "vitest --ui",
"plugin-zip": "wp-scripts plugin-zip",
"start:js": "wp-scripts start --config ./webpack.config.js",
"wp-env": "wp-env"
},
"dependencies": {
"@wordpress/api-fetch": "^7.43.0",
"@wordpress/components": "^29.12.0",
"@wordpress/compose": "^7.43.0",
"@wordpress/core-data": "^7.43.0",
"@wordpress/data": "^10.43.0",
"@wordpress/dom-ready": "^4.43.0",
"@wordpress/hooks": "^4.43.0",
"@wordpress/i18n": "^6.16.0",
"@wordpress/icons": "^12.1.0",
"@wordpress/notices": "^5.43.0",
"clsx": "^2.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"@typescript-eslint/eslint-plugin": "^8.58.1",
"@typescript-eslint/parser": "^8.58.1",
"@vitest/coverage-v8": "^4.1.5",
"@wordpress/babel-preset-default": "^8.44.0",
"@wordpress/env": "^10.39.0",
"@wordpress/eslint-plugin": "^24.5.0",
"@wordpress/prettier-config": "^4.44.0",
"@wordpress/scripts": "^31.8.0",
"@wordpress/stylelint-config": "^23.36.0",
"cross-env": "^10.1.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-import-resolver-webpack": "^0.13.11",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.32.0",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"npm-run-all": "^4.1.5",
"prettier": "npm:wp-prettier@3",
"rimraf": "^6.1.3",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^5.9.3",
"url-loader": "^4.1.1",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.1.4",
"webpack-remove-empty-scripts": "^1.1.1"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"wp-scripts lint-js --fix"
],
"**/*.{css,scss}": [
"wp-scripts lint-style --allow-empty-input --fix"
],
"src/**/*.php": [
"composer format --"
],
"**/*.{json,md,css,scss,js,jsx,ts,tsx}": [
"wp-scripts format --"
]
},
"overrides": {
"@babel/runtime": "^7.27.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"webpack-dev-server@<=5.2.0": ">=5.2.1",
"@typescript-eslint/eslint-plugin": "^8.58.1",
"@typescript-eslint/parser": "^8.58.1"
}
}