-
Notifications
You must be signed in to change notification settings - Fork 577
Expand file tree
/
Copy pathpackage.json
More file actions
355 lines (355 loc) · 13.6 KB
/
package.json
File metadata and controls
355 lines (355 loc) · 13.6 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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
{
"name": "client-release-group-root",
"version": "2.103.0",
"private": true,
"homepage": "https://fluidframework.com",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/FluidFramework.git"
},
"license": "MIT",
"author": "Microsoft and contributors",
"scripts": {
"build": "fluid-build --task build",
"build-and-test": "fluid-build --task test --worker",
"build-and-test:cjs": "fluid-build --task test:cjs --worker",
"build-and-test:esm": "fluid-build --task test:esm --worker",
"build-and-test:jest": "fluid-build --task test:jest --worker",
"build-and-test:mocha": "fluid-build --task test:mocha --worker",
"build-and-test:mocha:cjs": "fluid-build --task test:mocha:cjs --worker",
"build-and-test:mocha:esm": "fluid-build --task test:mocha:esm --worker",
"build-and-test:unit": "fluid-build --task test:unit --worker",
"build-and-test:unit:cjs": "fluid-build --task test:unit:cjs --worker",
"build-and-test:unit:esm": "fluid-build --task test:unit:esm --worker",
"build:api": "fluid-build --task build:api",
"build:compile": "fluid-build --task compile",
"build:compile:esm": "fluid-build --task compile:esm --worker",
"build:compile:esm:packages": "fluid-build --task compile:esm:packages --worker",
"build:docs": "fluid-build --task build:docs",
"build:eslint": "fluid-build --task eslint",
"build:fast": "fluid-build --task build --worker",
"build:full": "fluid-build --task full",
"build:full:compile": "fluid-build --task compile --task webpack",
"build:gendocs": "concurrently npm:build:gendocs:client npm:build:gendocs:server && cd docs && npm run build",
"build:gendocs:client": "fluid-build --task build:gendocs:client",
"build:gendocs:client:azure": "copyfiles \"azure/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:client:examples": "copyfiles \"examples/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:client:experimental": "copyfiles \"experimental/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:client:packages": "copyfiles \"packages/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:gendocs:server": "concurrently \"npm:build:gendocs:server:*\"",
"build:gendocs:server:routerlicious": "copyfiles \"server/routerlicious/**/*.api.json\" ./_api-extractor-temp/doc-models/ -e \"**/node_modules/**\" -f -V",
"build:readme": "markdown-magic --files \"**/*.md\" !docs",
"bundle-analysis:collect": "npm run webpack:profile && flub generate bundleStats",
"changeset": "flub changeset add --releaseGroup client",
"check:are-the-types-wrong": "fluid-build --task check:are-the-types-wrong",
"check:assertTags": "flub generate assertTags --all --validate",
"check:changesets": "vale .changeset --glob=*-*-*.md",
"check:format:repo": "biome check .",
"check:versions": "flub check buildVersion -g client --path .",
"check:versions:fix": "flub check buildVersion -g client --path . --fix",
"checks": "fluid-build --task checks",
"checks:fix": "fluid-build --task checks:fix",
"ci:build": "fluid-build --task ci:build",
"ci:build:docs": "fluid-build --task ci:build:docs",
"ci:check:are-the-types-wrong": "pnpm run -r --parallel --no-bail --color=always check:are-the-types-wrong",
"ci:test:jest": "npm run test:jest:report",
"ci:test:jest:coverage": "c8 --no-clean npm run test:jest:report",
"ci:test:mocha": "npm run test:mocha",
"ci:test:mocha:coverage": "cross-env FLUID_TEST_TIMEOUT=4s c8 --no-clean npm run test:mocha",
"ci:test:realsvc:local": "pnpm run -r --no-sort --stream --no-bail test:realsvc:local:report",
"ci:test:realsvc:local:coverage": "c8 --no-clean pnpm recursive --no-sort --stream --no-bail run test:realsvc:local:report",
"ci:test:realsvc:tinylicious": "pnpm run -r --no-sort --stream --no-bail test:realsvc:tinylicious:report",
"ci:test:realsvc:tinylicious:coverage": "c8 --no-clean pnpm run -r --no-sort --stream --no-bail test:realsvc:tinylicious:report ",
"ci:test:stress:tinylicious": "pnpm run -r --no-sort --stream --no-bail test:stress:tinylicious:report ",
"ci:test:stress:tinylicious:coverage": "c8 --no-clean pnpm run -r --no-sort --stream --no-bail test:stress:tinylicious:report ",
"clean": "fluid-build --task clean",
"clean:docs": "rimraf --glob \"**/_api-extractor-temp*\"",
"clean:nyc": "rimraf --glob \"nyc/**\"",
"clean:r11s": "fluid-build -g server --task clean",
"clean:root": "rimraf --glob \"*.done.build.log\"",
"eslint": "fluid-build --task eslint",
"eslint:fix": "fluid-build --task eslint:fix",
"format": "fluid-build --task format",
"format:biome": "fluid-build --task format:biome",
"format:changed": "npm run format:changed:main",
"format:changed:main": "biome check --write --changed --since=main",
"format:changed:next": "biome check --write --changed --since=next",
"format:repo": "biome check . --write",
"generate:packageList": "fluid-build --task generate:packageList",
"generate:packageList:internal-build": "flub list client --no-private --feed internal-build --outFile feeds/internal-build.txt",
"generate:packageList:internal-dev": "flub list client --no-private --feed internal-dev --outFile feeds/internal-dev.txt",
"generate:packageList:internal-test": "flub list client --no-private --feed internal-test --outFile feeds/internal-test.txt",
"generate:packageList:public": "flub list client --no-private --feed public --outFile feeds/public.txt",
"generate:packagesMd": "flub check layers --info layerInfo.json --md .",
"preinstall": "node scripts/only-pnpm.cjs",
"install:agency": "curl -sSfL https://aka.ms/InstallTool.sh | sh -s agency",
"layer-check": "flub check layers --info layerInfo.json",
"lint": "fluid-build --task lint",
"lint:fix": "fluid-build --task lint:fix",
"policy-check": "flub check policy",
"policy-check-help": "echo Detect (and error on) policy-check violations, like package.json sorting, copyright headers etc. Run the check or \"pnpm flub check policy --listHandlers\" for a full list.",
"policy-check:asserts": "flub generate assertTags --all && npm run format",
"policy-check:fix": "flub check policy --fix",
"policy-check:fix-help": "echo Fix policy-check violations",
"restart": "cd server/routerlicious && npm run restart",
"start:docker": "docker-compose -f server/docker-compose.yml up",
"stop:docker": "docker-compose -f server/docker-compose.yml down",
"stop:docker:full": "docker-compose -f server/docker-compose.yml down && docker volume prune --force",
"syncpack:deps": "syncpack lint",
"syncpack:deps:fix": "syncpack fix",
"syncpack:versions": "syncpack lint",
"syncpack:versions:fix": "syncpack fix",
"test": "npm run test:mocha && npm run test:jest && npm run test:realsvc && npm run test:stress",
"test:bail": "npm run test:mocha:bail && npm run test:jest:bail",
"test:benchmark:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/benchmark*Output.json\" benchmarkOutput",
"test:benchmark:duration:report": "cross-env FLUID_TEST_VERBOSE=1 pnpm run -r --workspace-concurrency=4 --no-sort --stream --no-bail bench -- --fail-zero=false --grep \"@Benchmark @Measurement @ExecutionTime\" --reporterOptions reportFile=./benchmarkDurationOutput.json",
"test:benchmark:other:report": "cross-env FLUID_TEST_VERBOSE=1 pnpm run -r --no-sort --stream --no-bail bench -- --fail-zero=false --grep \"@Benchmark @Measurement(?!.*@ExecutionTime)\" --reporterOptions reportFile=./benchmarkOtherOutput.json",
"test:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/nyc/**\" nyc",
"test:coverage": "c8 npm test",
"test:fromroot": "mocha \"packages/**/dist/test/**/*.spec.*js\" --exit",
"test:jest": "assign-test-ports && pnpm puppeteer browsers install chrome-headless-shell && pnpm -r --no-sort --stream --no-bail test:jest --color",
"test:jest:bail": "assign-test-ports && pnpm puppeteer browsers install chrome-headless-shell && pnpm -r --no-sort --stream test:jest",
"test:jest:report": "assign-test-ports && pnpm puppeteer browsers install chrome-headless-shell && pnpm -r --no-sort --stream --no-bail --workspace-concurrency=4 test:jest",
"test:mocha": "pnpm run -r --no-sort --stream --no-bail test:mocha --color",
"test:mocha:bail": "pnpm run -r --no-sort --stream test:mocha",
"test:realsvc": "pnpm run -r --no-sort --stream --no-bail test:realsvc",
"test:stress": "pnpm run -r --no-sort --stream --no-bail test:stress",
"tsc": "fluid-build --task tsc",
"tsc:fast": "fluid-build --task tsc --worker",
"typetests:gen": "fluid-build --task typetests:gen",
"typetests:prepare": "flub typetests -g client --reset --previous --normalize",
"watch": "concurrently \"npm run watch:tsc\" \"npm run watch:esnext\" \"npm run watch:webpack\"",
"watch:esnext": "pnpm run -r --parallel build:esnext --watch",
"watch:tsc": "pnpm run -r --parallel tsc --watch",
"watch:webpack": "pnpm run -r --parallel webpack --watch",
"webpack": "fluid-build --task webpack",
"webpack:profile": "fluid-build --task webpack:profile"
},
"c8": {
"all": true,
"cache-dir": "nyc/.cache",
"exclude": [
"**/*.d.*ts",
"**/src/test/**/*.*ts",
"**/dist/test/**/*.*js",
"**/lib/test/**/*.*js",
"experimental/examples/**",
"experimental/PropertyDDS/examples/**",
"**/*.bundle.js",
"packages/tools/devtools/devtools-browser-extension/dist/e2e-tests/**",
"packages/tools/devtools/devtools-browser-extension/dist/bundle/**"
],
"exclude-after-remap": false,
"extension": [
".ts",
".tsx",
".js",
".jsx"
],
"include": [
"packages/**/src/**/*.*ts",
"packages/**/dist/**/*.*js",
"packages/**/lib/**/*.*js",
"experimental/**/src/**/*.*ts",
"experimental/**/dist/**/*.*js"
],
"merge-async": true,
"report-dir": "nyc/report",
"reporter": [
"clover",
"cobertura",
"html",
"json-summary",
"text"
],
"temp-directory": "nyc/.nyc_output"
},
"devDependencies": {
"@biomejs/biome": "~2.4.5",
"@changesets/cli": "^2.29.8",
"@fluid-private/changelog-generator-wrapper": "workspace:~",
"@fluid-tools/build-cli": "catalog:buildTools",
"@fluid-tools/markdown-magic": "workspace:~",
"@fluidframework/build-common": "^2.0.3",
"@fluidframework/build-tools": "catalog:buildTools",
"@fluidframework/eslint-config-fluid": "catalog:eslint",
"@fluidframework/test-tools": "^2.0.0",
"@microsoft/api-extractor": "7.58.1",
"@vvago/vale": "^3.12.0",
"auto-changelog": "^2.4.0",
"c8": "^10.1.3",
"changesets-format-with-issue-links": "^0.3.0",
"concurrently": "^9.2.1",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
"eslint": "catalog:eslint",
"jest": "^29.6.2",
"mocha": "^11.7.5",
"puppeteer": "^23.6.0",
"rimraf": "^6.1.3",
"run-script-os": "^1.1.6",
"syncpack": "^15.1.2",
"type-fest": "^2.19.0",
"typescript": "~5.4.5"
},
"packageManager": "pnpm@11.5.0+sha512.dbfcc4f81cf48597afd4bc391ffdf12c11f1a9fb83a395bfa6b0a2d9cc2fd8ffebafdb1ccbd529632153f793904c2615b7f09fe1a345473fd1c35845172a8eb1",
"engines": {
"node": ">=22.22.2",
"pnpm": "11"
},
"fluidBuild": {
"tasks": {
"build": {
"dependsOn": [
"^build",
"build:docs",
"build:gendocs:client",
"generate:packagesMd",
"checks"
],
"script": false
},
"build:api": {
"dependsOn": [
"^build:docs",
"build:gendocs:client"
],
"script": false
},
"build:docs": {
"dependsOn": [
"^build:docs",
"build:gendocs:client",
"build:readme"
],
"script": false
},
"build:gendocs:client": {
"dependsOn": [
"build:gendocs:client:azure",
"build:gendocs:client:examples",
"build:gendocs:client:experimental",
"build:gendocs:client:packages"
],
"script": false
},
"build:gendocs:client:azure": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:gendocs:client:examples": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:gendocs:client:experimental": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:gendocs:client:packages": {
"after": [
"^build:docs",
"^ci:build:docs"
]
},
"build:readme": {
"dependsOn": []
},
"check:format": {
"dependsOn": [
"check:format:repo"
],
"script": false
},
"checks": {
"dependsOn": [
"check:assertTags",
"check:format",
"generate:packageList",
"policy-check",
"layer-check",
"syncpack:deps",
"check:versions"
],
"script": false
},
"checks:fix": {
"dependsOn": [
"format",
"generate:packageList",
"policy-check:fix",
"syncpack:deps:fix",
"check:versions:fix"
],
"script": false
},
"ci:build": {
"dependsOn": [
"^ci:build",
"ci:build:docs",
"generate:packagesMd"
],
"script": false
},
"ci:build:docs": {
"dependsOn": [
"^ci:build:docs",
"build:gendocs:client",
"build:readme"
],
"script": false
},
"clean": {
"dependsOn": [
"^clean",
"clean:root",
"clean:docs",
"clean:nyc"
],
"script": false
},
"clean:docs": {
"before": [
"*"
]
},
"clean:nyc": {
"before": [
"*"
]
},
"format": {
"dependsOn": [
"format:repo"
],
"script": false
},
"generate:packageList": {
"dependsOn": [
"generate:packageList:internal-build",
"generate:packageList:internal-dev",
"generate:packageList:internal-test",
"generate:packageList:public"
],
"script": false
},
"lint": {
"dependsOn": [
"checks"
],
"script": false
},
"lint:fix": {
"dependsOn": [
"checks:fix"
],
"script": false
}
}
}
}