/
package.json
76 lines (76 loc) · 2.88 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
{
"name": "@lwc/perf-benchmarks",
"version": "6.3.0",
"private": true,
"scripts": {
"build": "rm -fr dist && rollup -c ./rollup.config.mjs && node scripts/build.js && ./scripts/fix-deps.sh",
"test": "yarn test:run && yarn test:format",
"test:run": "for file in $(find dist -name '*.tachometer.json'); do tach --config $file --json-file $(echo $file | sed 's/.json/.results.json/'); done",
"test:format": "if [ -z $BENCHMARK_SMOKE_TEST ]; then node ./scripts/format-results.mjs $(find dist -name '*.results.json'); fi",
"test:best": "best src",
"test:best:ci": "best src --runner remote"
},
"//": [
"Note it's important for Tachometer that any deps it needs to swap out are dependencies, not devDependencies.",
"Also note we are pinned to Tachometer 0.5.10 due to a breaking change in 0.6.0.",
"Breaking change: https://github.com/google/tachometer/issues/244",
"Also note that we use legacy versions of rollup-plugin-node-resolve and rollup-plugin-commonjs because Best uses an old version of Rollup."
],
"dependencies": {
"@lwc/engine-dom": "6.3.0",
"@lwc/engine-server": "6.3.0",
"@lwc/perf-benchmarks-components": "6.3.0",
"@lwc/synthetic-shadow": "6.3.0"
},
"devDependencies": {
"@best/cli": "^11.0.0",
"@best/runner-headless": "^11.0.0",
"@best/runner-remote": "^11.0.0",
"folder-hash": "4.0.4",
"markdown-table": "^3.0.3",
"tachometer": "0.5.10"
},
"nx": {
"targets": {
"build": {
"outputs": [
"{projectRoot}/dist"
],
"//": "The build output depends on these env variables. See: https://nx.dev/concepts/how-caching-works#runtime-hash-inputs",
"inputs": [
{
"env": "BENCHMARK_REPO"
},
{
"env": "BENCHMARK_REF"
},
{
"env": "BENCHMARK_AUTO_SAMPLE_CONDITIONS"
},
{
"env": "BENCHMARK_SAMPLE_SIZE"
},
{
"env": "BENCHMARK_TIMEOUT"
},
{
"env": "BENCHMARK_SMOKE_TEST"
}
]
},
"test": {
"dependsOn": [
"build"
]
},
"test:best": {
"//": "Building dist/ files is only needed for Tachometer, not Best",
"dependsOn": []
},
"test:best:ci": {
"//": "Building dist/ files is only needed for Tachometer, not Best",
"dependsOn": []
}
}
}
}