-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
153 lines (153 loc) · 4.03 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "@wpsocio/root",
"private": true,
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "GPL-3.0-or-later",
"author": {
"name": "WP Socio",
"url": "https://github.com/wpsocio"
},
"type": "module",
"scripts": {
"build": "wireit",
"build:tools": "wireit",
"build:projects": "wireit",
"bundle:all": "wpdev bundle --all",
"bundle:changed": "wireit",
"dev": "wireit",
"dev:cleanup": "wireit",
"env-start": "wp-env start",
"env-stop": "wp-env stop",
"lint:all": "wireit",
"lint:js": "wireit",
"lint:js:fix": "biome format ./ --fix",
"lint:php": "wireit",
"prep-release": "wireit",
"prep-version": "wireit",
"release": "changeset publish",
"release-status": "wireit",
"postinstall": "pnpm build:tools",
"setup:all": "wireit",
"setup:php": "wireit",
"test:e2e": "wp-scripts test-playwright --config test/e2e/playwright.config.ts",
"test:e2e:debug": "wp-scripts test-playwright --config test/e2e/playwright.config.ts --ui",
"test:php": "wireit",
"typecheck": "wireit",
"upgrade-all": "pnpm ncu -u && pnpm -r exec ncu -u",
"wp": "composer run wp -- ",
"wp-env": "wp-env"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.10",
"@playwright/test": "^1.49.1",
"@types/node": "^22.10.2",
"@wordpress/e2e-test-utils-playwright": "^1.14.0",
"@wordpress/env": "^10.14.0",
"@wordpress/scripts": "^30.7.0",
"@wpsocio/e2e-utils": "workspace:*",
"@wpsocio/wpdev": "workspace:*",
"npm-check-updates": "^17.1.11",
"rimraf": "^6.0.1",
"tailwindcss": "^3.4.16",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"wireit": "^0.14.9"
},
"wireit": {
"build": {
"dependencies": ["build:all"]
},
"build:all": {
"command": "pnpm build:tools && pnpm build:projects"
},
"build:tools": {
"command": "pnpm -r --filter=./tools/* run build:local"
},
"build:projects": {
"command": "pnpm -r --filter=!./tools run build"
},
"bundle:plugins": {
"command": "pnpm -r --filter=./plugins/* exec wpdev bundle"
},
"bundle:changed": {
"command": "wpdev bundle --from-changeset --changeset-json=changeset-status.json"
},
"dev": {
"command": "pnpm -r --workspace-concurrency=Infinity run dev",
"service": true
},
"dev:cleanup": {
"command": "pnpm -r --filter=./plugins/* exec pnpm rimraf src/assets/build/dev-server.json"
},
"lint:all": {
"dependencies": ["lint:js", "lint:php"]
},
"lint:js": {
"command": "biome lint ./"
},
"lint:php": {
"command": "pnpm -r run lint:php"
},
"prep-release": {
"command": "pnpm run bundle:changed",
"dependencies": ["prep-version"]
},
"prep-version": {
"command": "changeset version && pnpm -r run version",
"dependencies": ["release-status"]
},
"release-status": {
"command": "changeset status --output=changeset-status.json"
},
"setup:all": {
"dependencies": ["setup:php", "build:all"]
},
"setup:php": {
"dependencies": [
"setup:php:root",
"setup:php:packages",
"setup:php:projects"
]
},
"setup:php:packages": {
"command": "pnpm -r --filter=./packages/php/* run setup:php"
},
"setup:php:root": {
"command": "composer install --ignore-platform-reqs"
},
"setup:php:projects": {
"command": "pnpm -r --filter=./plugins/* --filter=./premium/*/* run setup:php",
"dependencies": ["setup:php:packages"]
},
"test:php": {
"command": "pnpm -r run test:php"
},
"typecheck": {
"dependencies": [
"typecheck:tools",
"typecheck:packages",
"typecheck:projects"
]
},
"typecheck:packages": {
"command": "pnpm -r --filter=./packages/js/* exec tsc --noEmit --moduleResolution Bundler --module ESNext"
},
"typecheck:projects": {
"command": "pnpm -r --filter=./plugins/* --filter=./premium/*/* exec tsc --noEmit"
},
"typecheck:tools": {
"command": "pnpm -r --filter=./tools/* exec tsc --noEmit"
}
},
"wpdev": {
"isRoot": true,
"operationMode": "wp-monorepo",
"projectTypes": ["plugins"],
"envFiles": [".env"]
},
"packageManager": "[email protected]"
}