-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
92 lines (92 loc) · 3.15 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
{
"name": "react-starter-rspack",
"version": "0.0.1",
"description": "quickstart boilerplate for react using typescript/rspack.",
"keywords": [
"react",
"boilerplate",
"rspack"
],
"homepage": "https://examples-hub.github.io/react-starter-rspack",
"license": "MIT",
"author": "jinyaoo <[email protected]>",
"type": "module",
"main": "src/index.ts",
"scripts": {
"// storybook": "echo 'TODO start-storybook wip'",
"build": "npm run clean && npm run build:prod",
"build11": "npm run build:types && npm run build:js",
"build:dev": "cross-env REACT_APP_ENV=react rspack build -c ./webpacker/rspack.config.demo.mjs",
"build:dev-ts": "NODE_OPTIONS=--experimental-transform-types rspack build -c ./webpacker/rspack.config.dev.ts",
"build:prod": "cross-env REACT_APP_ENV=react NODE_ENV=production rspack build -c ./webpacker/rspack.config.prod.mjs",
"build:prod-esm": "cross-env REACT_APP_ENV=react NODE_ENV=production rspack build -c ./webpacker/rspack.config.prod.esm.mjs",
"build:types": "tsc --emitDeclarationOnly",
"clean": "rimraf build dist",
"demo": "cross-env REACT_APP_ENV=reacthot rspack serve -c ./webpacker/rspack.config.demo.mjs",
"dev": "npm run demo",
"format": "prettier \"**/*.{js,jsx,ts,tsx,mjs,mts,json}\" --write",
"format:check": "npm run formatter -- --check",
"help": "echo 'exec npm start to view the demo'",
"lint": "eslint src --ext .ts,.tsx --fix -o eslint-log.log",
"start": "npm run demo",
"test": "cross-env REACT_APP_ENV=react jest --config ./jest.config.js",
"type-check": "tsc --noEmit"
},
"husky": {
"hooks": {
"pre-commit": "npm run format"
}
},
"browserslist": [
"defaults",
"not IE 11",
"not IE_Mob 11"
],
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@rspack/cli": "^1.1.4",
"@rspack/core": "^1.1.4",
"@rspack/plugin-react-refresh": "^1.0.0",
"@swc/helpers": "^0.5.15",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.14",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-test-renderer": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"clean-webpack-plugin": "^4.0.0",
"core-js": "^3.39.0",
"cross-env": "^7.0.3",
"css-loader": "^7.1.2",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.0",
"global-jsdom": "^25.0.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"jsdom": "^25.0.1",
"node-polyfill-webpack-plugin": "^4.0.0",
"oxlint": "^0.14.0",
"prettier": "^3.4.1",
"react-refresh": "^0.14.2",
"react-test-renderer": "^18.3.1",
"rimraf": "^6.0.1",
"sass": "^1.81.0",
"sass-loader": "^16.0.3",
"source-map-loader": "^5.0.0",
"source-map-support": "^0.5.21",
"style-loader": "^4.0.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"webpack-merge": "^6.0.1"
}
}