-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
170 lines (170 loc) · 5.68 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "watchable.dev",
"version": "0.0.0",
"private": true,
"description": "Monorepo for @watchable packages",
"repository": "https://github.com/cefn/watchable",
"license": "MIT",
"author": "Cefn Hoile <[email protected]> (https://cefn.com)",
"type": "module",
"workspaces": [
"packages/*",
"apps/*"
],
"scripts": {
"lint": "wireit",
"qa": "wireit",
"qa:clean": "find . -depth -not -path '*/node_modules/*' -and \\( \\( -type f -and -iname '*.tsbuildinfo' \\) -or \\( -type d -and \\( -iname '.wireit' -or -iname 'dist' \\) \\) \\) | xargs -n1 rm -rf ",
"qa:watch": "npm run qa --watch",
"build": "wireit",
"docs": "wireit",
"playwright:download": "playwright install --with-deps",
"apps:playwright:align": "find ./apps -maxdepth 1 -mindepth 1 -type d -name 'counter*react*ts*' -and -not -name 'counter-react-ts' | xargs -I{} zsh -c \"cp apps/counter-react-ts/playwright.config.ts {} && cp apps/counter-react-ts/test/playwright/index.test.ts {}/test/playwright/index.test.ts\"",
"packages:sort": "npm exec sort-package-json package.json {apps,packages}/*/package.json",
"packages:validate": "tsx tooling/validate/cli.ts",
"packages:validate:fix": "npm run packages:validate -- --fix",
"git:ensureclean": "(git diff-index --quiet HEAD && git log --exit-code @..@{u}) || (echo 'Git has uncommitted or unpushed changes: EXITING' && false)",
"git:commit:release": "git add . && git commit -m 'Release changeset' && git push --tags",
"changeset:create": "changeset",
"changeset:version": "changeset version",
"changeset:publish": "changeset publish",
"prerelease:enter": "changeset pre enter alpha",
"prerelease:exit": "changeset pre exit alpha",
"npm:login": "npm whoami || npm login",
"publish": "run-s npm:login git:ensureclean qa:clean qa changeset:create changeset:version changeset:publish git:commit:release"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@preact/preset-vite": "^2.8.2",
"@types/json-diff": "^0.9.1",
"@types/json-stable-stringify": "^1.0.34",
"@types/lodash-es": "^4.17.7",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@vitejs/plugin-legacy": "^5.4.0",
"@vitejs/plugin-react": "^4.2.1",
"browserslist": "^4.23.0",
"chalk": "^5.1.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.34.1",
"globals": "^15.0.0",
"json-diff": "^1.0.3",
"lodash-es": "^4.17.21",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.0",
"rimraf": "^5.0.0",
"sort-package-json": "^2.4.1",
"terser": "^5.31.0",
"tsx": "^3.12.6",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "^1.6.0",
"wireit": "^0.14.4",
"zx": "^7.1.1"
},
"engines": {
"node": "^20",
"npm": "^10"
},
"wireit": {
"qa": {
"dependencies": [
"qa:time-insensitive",
"qa:time-sensitive"
]
},
"qa:time-insensitive": {
"dependencies": [
"packages:validate",
"build",
"test",
"lint",
"docs"
]
},
"qa:time-sensitive": {
"dependencies": [
"qa:time-insensitive"
],
"command": "npm --workspace packages/nevermore run test"
},
"build": {
"dependencies": [
"./packages/queue:build",
"./packages/store:build",
"./packages/store-edit:build",
"./packages/store-follow:build",
"./packages/store-react:build",
"./packages/nevermore:build",
"./packages/unpromise:build",
"./apps/counter-dom-commonjs:build",
"./apps/counter-dom-esm:build",
"./apps/counter-dom-tiny:build",
"./apps/counter-dom-ts:build",
"./apps/counter-preact-ts:build",
"./apps/counter-react-js:build",
"./apps/counter-react-ts:build",
"./apps/counter-react-ts-edit:build",
"./apps/counter-react-ts-edit-context:build"
]
},
"test": {
"dependencies": [
"./apps/counter-preact-ts:test",
"./apps/counter-react-ts:test",
"./apps/counter-react-ts-edit:test",
"./apps/counter-react-ts-edit-context:test",
"./packages/queue:test",
"./packages/store:test",
"./packages/store-edit:test",
"./packages/store-follow:test",
"./packages/store-react:test",
"./packages/unpromise:test"
]
},
"lint": {
"dependencies": [
"./apps/counter-dom-commonjs:lint",
"./apps/counter-dom-esm:lint",
"./apps/counter-dom-tiny:lint",
"./apps/counter-dom-ts:lint",
"./apps/counter-preact-ts:lint",
"./apps/counter-react-js:lint",
"./apps/counter-react-ts:lint",
"./apps/counter-react-ts-edit:lint",
"./apps/counter-react-ts-edit-context:lint",
"./packages/queue:lint",
"./packages/store:lint",
"./packages/store-edit:lint",
"./packages/store-follow:lint",
"./packages/store-react:lint",
"./packages/nevermore:lint",
"./packages/unpromise:lint"
]
},
"docs": {
"command": "typedoc",
"dependencies": [
"./packages/queue:build",
"./packages/store:build",
"./packages/store-edit:build",
"./packages/store-follow:build",
"./packages/store-react:build",
"./packages/nevermore:build",
"./packages/unpromise:build"
],
"files": [
"packages/*/src/**/*.ts",
"packages/*/README.md"
],
"output": [
"api"
]
}
}
}