-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
56 lines (56 loc) · 1.64 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
{
"name": "block-editor-governance",
"version": "1.0.11",
"description": "This is a plugin adding additional governance capabilities to the block editor.",
"author": "VIP Bistro",
"main": "build/index.js",
"devDependencies": {
"@automattic/eslint-plugin-wpvip": "^0.13.0",
"@playwright/test": "^1.44.1",
"@wordpress/block-editor": "^14.0.0",
"@wordpress/components": "^28.0.0",
"@wordpress/compose": "^7.2.0",
"@wordpress/data": "^10.2.0",
"@wordpress/e2e-test-utils-playwright": "^1.7.0",
"@wordpress/hooks": "^4.7.0",
"@wordpress/i18n": "^5.0.0",
"@wordpress/notices": "^5.5.0",
"@wordpress/scripts": "^27.9.0",
"babel-jest": "^29.7.0",
"eslint": "^8.56.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"phplint": "^2.0.5",
"prettier": "npm:[email protected]",
"webpack": "^5.91.0"
},
"scripts": {
"build": "webpack --mode production",
"dev": "webpack --watch",
"lint:js": "eslint . --ext .js",
"phplint": "npx phplint '**/*.php' '!vendor/**' '!node_modules/**' '!build' > /dev/null",
"phpcs": "vendor/bin/phpcs --cache",
"phpcs:fix": "vendor/bin/phpcbf",
"lint": "npm run phplint && npm run phpcs && npm run lint:js",
"prepare": "husky install",
"test": "npm run test:unit",
"test:unit": "npm run test:php && npm run test:js",
"test:e2e": "npx playwright test",
"test:js": "wp-scripts test-unit-js"
},
"jest": {
"testMatch": [
"<rootDir>/src/**/*.test.js"
],
"preset": "@wordpress/jest-preset-default",
"testPathIgnorePatterns": [
"/.git/",
"/node_modules/",
"/governance/",
"/tests/"
],
"transform": {
"^.+\\.[jt]sx?$": "@wordpress/scripts/config/babel-transform.js"
}
}
}