Skip to content

Commit 8a1cf1e

Browse files
authored
Rewrite project build setup using ESBuild and a common app skeleton (#28)
1 parent d2e2a47 commit 8a1cf1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4108
-1022
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
77

8+
9+
.cache
10+
.yarnrc
11+
.yarn/*
12+
!.yarn/patches
13+
!.yarn/releases
14+
!.yarn/plugins
15+
!.yarn/sdks
16+
!.yarn/versions
17+
.pnp.*
18+
*.tgz
19+
20+
821
# Runtime data
922
pids
1023
*.pid

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"endOfLine": "auto"
6+
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
name: `@yarnpkg/plugin-compat`,
3+
factory: (require) => {
4+
// we are not using PNP and want to use `typescript@next` in CI without hassle
5+
// dummy implementation to override the built-in version of this plugin
6+
// can be dropped once we switch to yarn 3
7+
return {}
8+
},
9+
}

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

+29
Large diffs are not rendered by default.

.yarn/releases/yarn-berry.cjs

+55
Large diffs are not rendered by default.

.yarnrc.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
5+
spec: '@yarnpkg/plugin-workspace-tools'
6+
- path: .yarn/plugins/@yarnpkg/plugin-compat.cjs
7+
spec: '@yarnpkg/plugin-compat'
8+
9+
yarnPath: .yarn/releases/yarn-berry.cjs

package.json

+29-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"initialize": "node ./setupRuns.js",
88
"start": "node ./runBenchmarks.js",
99
"test": "jest",
10-
"format" : "prettier --write \"sources/**/src/*.{js,jsx}\" *.js"
10+
"format": "prettier --write \"sources/**/src/*.{js,jsx}\" *.js",
11+
"esbuild-test": "node scripts/cli.js"
1112
},
1213
"repository": {
1314
"type": "git",
@@ -25,14 +26,40 @@
2526
},
2627
"homepage": "https://github.com/reduxjs/react-redux-benchmarks#readme",
2728
"dependencies": {
29+
"@reduxjs/toolkit": "^1.6.1",
30+
"@testing-library/dom": "^8.5.0",
31+
"@testing-library/user-event": "^13.2.1",
32+
"chance": "^1.1.8",
2833
"cli-table2": "^0.2.0",
2934
"cross-spawn": "^6.0.5",
35+
"events": "^3.0.0",
3036
"express": "^4.16.4",
37+
"fps-emitter": "^1.0.0",
38+
"glob": "^7.1.3",
39+
"performance-mark-metadata": "^1.0.3",
3140
"puppeteer": "^1.7.0",
41+
"react": "0.0.0-experimental-50263d327-20210914",
42+
"react-dom": "0.0.0-experimental-50263d327-20210914",
43+
"react-redux": "^7.2.5",
44+
"react-redux-5.1.2": "npm:[email protected]",
45+
"react-redux-6.0.1": "npm:[email protected]",
46+
"react-redux-7.2.5": "npm:[email protected]",
3247
"recursive-copy": "^2.0.9",
48+
"redux": "^4.1.1",
49+
"reselect": "^4.0.0",
50+
"seedrandom": "^3.0.5",
3351
"tracealyzer": "^0.9.3"
3452
},
3553
"devDependencies": {
36-
"prettier": "^1.16.4"
54+
"@types/fs-extra": "^9.0.12",
55+
"@types/react": "^17.0.21",
56+
"@types/react-dom": "^17.0.9",
57+
"@types/yargs": "^17.0.2",
58+
"esbuild": "^0.12.28",
59+
"esbuild-plugin-alias": "^0.1.2",
60+
"fs-extra": "^10.0.0",
61+
"prettier": "latest",
62+
"typescript": "^4.4.3",
63+
"yargs": "^17.1.1"
3764
}
3865
}

0 commit comments

Comments
 (0)