-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy pathpackage.json
More file actions
134 lines (134 loc) · 4.83 KB
/
package.json
File metadata and controls
134 lines (134 loc) · 4.83 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"name": "@google/site-kit-wp",
"scripts": {
"build": "npm run -w assets build",
"build:dev": "npm run -w assets build:dev",
"build:production": "npm run -w assets build:production",
"build:test": "npm run -w assets build:test",
"watch": "npm run -w assets watch",
"build:storybook": "npm run -w storybook build",
"prezip": "composer run autoload-includes",
"zip": "./bin/release",
"dev": "npm run build:dev",
"predev-zip": "npm run build:dev",
"dev-zip": "npm run zip",
"prerelease-zip": "npm run build",
"release-zip": "npm run zip",
"pretest": "npm run build:production -- --display=none",
"pretest:visualtest": "VRT=1 npm run build:storybook",
"test": "npm run -w tests/js test:js:watch",
"test:visualtest": "npm run -w tests/backstop test:visualtest",
"test:visualapprove": "npm run -w tests/backstop test:visualapprove",
"test:js": "npm run -w tests/js test:js",
"test:js:watch": "npm run -w tests/js test:js:watch",
"test:storybook": "jest --config=./tests/js/jest.config.js --testMatch '<rootDir>/storybook/stories.test.js'",
"test:e2e": "npm run -w tests/e2e test",
"test:e2e:interactive": "npm run -w tests/e2e test:interactive",
"test:e2e:watch": "npm run -w tests/e2e test:watch",
"test:e2e:watch:interactive": "npm run -w tests/e2e test:watch:interactive",
"test:playwright": "npm run -w tests/playwright test",
"test:playwright:ui": "npm run -w tests/playwright test:ui",
"storybook": "npm run -w storybook start",
"storybook:vrt": "npm run storybook -- --ci --quiet",
"backstopjs": "./bin/backstop",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint --no-eslintrc --config .eslintrc.json --ignore-path .eslintignore --ext js,jsx,ts,tsx .",
"lint:js-fix": "eslint --no-eslintrc --config .eslintrc.json --ignore-path .eslintignore --ext js,jsx,ts,tsx --fix \"**/*.{js,jsx,ts,tsx,.yml,.yaml}\"",
"lint:css": "stylelint ./assets/sass ./storybook/assets/sass",
"lint:css-fix": "stylelint ./assets/sass ./storybook/assets/sass --fix",
"env:start": "npm run -w tests/e2e start",
"env:stop": "npm run -w tests/e2e stop",
"env:reset-site": "npm run -w tests/e2e reset-site",
"playwright:env:start": "npm run -w tests/playwright start",
"playwright:env:stop": "npm run -w tests/playwright stop",
"playwright:generate-backup": "npm run -w tests/playwright generate-backup",
"postinstall": "node -e \"process.env.SKIP_PATCH_PACKAGE || require('child_process').execSync('patch-package', {stdio:'inherit'})\"",
"preinstall": "./bin/check-node-version.js",
"typecheck": "tsc --noEmit"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "php -f bin/prepare-commit-msg.php $HUSKY_GIT_PARAMS",
"commit-msg": "php -f bin/check-commit-msg.php $HUSKY_GIT_PARAMS",
"pre-push": "./bin/check-protected-branch.sh"
}
},
"lint-staged": {
"*.js": [
"eslint --config .eslintrc.staged.json"
],
"*.ts": [
"eslint --config .eslintrc.staged.json",
"tsc-files"
],
"*.tsx": [
"eslint --config .eslintrc.staged.json",
"tsc-files"
],
"assets/sass/**/*.scss": [
"stylelint"
],
"storybook/assets/sass/**/*.scss": [
"stylelint"
],
"*.php": [
"./vendor/bin/phpcs"
]
},
"devDependencies": {
"@babel/preset-typescript": "^7.27.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@wordpress/browserslist-config": "^5.40.0",
"@wordpress/eslint-plugin": "^7.1.0",
"@wordpress/prettier-config": "^2.0",
"@wordpress/stylelint-config": "^21.0.0",
"archiver": "^5.0.2",
"babel-eslint": "^10.1.0",
"babel-loader": "^9.2.1",
"eslint": "^7.32.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-jsdoc": "^41.1.2",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-no-relative-import-paths": "^1.6.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-sitekit": "file:packages/eslint-plugin",
"eslint-plugin-unicorn": "^40.1.0",
"eslint-scope": "^5.1.0",
"fs-extra": "^9.0.1",
"git-repo-info": "^2.1.1",
"glob-to-regexp": "^0.4.1",
"husky": "^3.1.0",
"lint-staged": "^10.2.11",
"patch-package": "^8.0.0",
"prettier": "npm:wp-prettier@2.6.2",
"sanitize-filename": "^1.6.3",
"semver-compare": "^1.0.0",
"semver-regex": "^3.1.4",
"stylelint": "^14.11.0",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-declaration-strict-value": "^1.9.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.3.0",
"tsc-files": "^1.1.4",
"typescript": "^5.9.3",
"webpack-cli": "^6.0.1"
},
"workspaces": [
"assets",
"storybook",
"tests/backstop",
"tests/e2e",
"tests/js",
"tests/playwright"
]
}