-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
140 lines (140 loc) · 4.78 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
{
"name": "react-app-boilerplate",
"version": "0.1.0",
"description": "A simpler React boilerplate than CRA with more useful built-in features",
"main": "./dist/index.js",
"browser": "./dist/index.html",
"types": "types/index.d.ts",
"author": "D-Pow",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/D-Pow/react-app-boilerplate.git"
},
"engines": {
"node": ">=16.20.0",
"npm": ">=8"
},
"files": [
"./dist"
],
"config": {
"buildOutputDir": "dist",
"eslintExtensions": ".tsx,.ts,.jsx,.js,.mjs,.cjs",
"supportIe": false
},
"scripts": {
"start": "webpack serve --config ./config/webpack.config.mjs",
"start:allowCorsAccess": "cross-env ALLOW_CORS_ACCESS=true npm start --",
"start:serviceWorkerDev": "cross-env SW_DEV=true npm run start --",
"mock": "cross-env MOCK=true npm start --",
"mock:allowCorsAccess": "cross-env ALLOW_CORS_ACCESS=true npm run mock --",
"test": "jest",
"lint": "eslint --ext $npm_package_config_eslintExtensions",
"lint:all": "npm run lint -- .",
"lint:fix": "npm run lint -- --fix",
"lint:fixAll": "npm run lint:all -- --fix",
"lint:verify": "npm run lint:all -- --quiet",
"typecheck": "tsc --noEmit",
"typecheck:file-list": "npm run --silent typecheck | grep -Eio '^[a-zA-Z/_@\\.-]+' | sort -u",
"verify": "set -m; declare exitCode=0; ( npm run lint:verify ) & ( npm run typecheck ) & ( npm run test ) & for bgPid in $(jobs -p); do wait $bgPid; (( exitCode += $? )); done; exit $exitCode",
"clean": "npx shx rm -rf $npm_package_config_buildOutputDir coverage",
"clean:node_modules": "npm run clean; mv node_modules znode_modules; ( rm -rf znode_modules & );",
"build": "cross-env NODE_ENV=production webpack --mode production --config ./config/webpack.config.mjs",
"prebuild": "npm run clean --",
"pretsBuild": "npm run clean --",
"tsBuild": "tsc",
"createComponent": "./scripts/createComponent.js --",
"changeName": "./scripts/change-name.mjs --",
"deploy": "gh-pages -d $npm_package_config_buildOutputDir",
"predeploy": "npm run build --"
},
"jest": {
"preset": "./config/jest/jest.config.mjs"
},
"keywords": [
"boilerplate",
"web development",
"create-react-app",
"typescript",
"website",
"webpack"
],
"overrides": {
"react": "$react",
"react-dom": "$react-dom"
},
"dependencies": {
"prop-types": "^15.7.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0"
},
"devDependencies": {
"@babel/core": "^7.22.11",
"@babel/eslint-parser": "^7.22.11",
"@babel/eslint-plugin": "^7.22.10",
"@babel/plugin-proposal-decorators": "^7.22.10",
"@babel/plugin-syntax-import-assertions": "^7.22.5",
"@babel/plugin-syntax-import-attributes": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.10",
"@babel/preset-env": "^7.22.14",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.11",
"@svgr/webpack": "^6.2.1",
"@testing-library/react": "^13.4.0",
"@types/babel__core": "^7.20.1",
"@types/jest": "^27.0.2",
"@types/mkcert": "^1.2.0",
"@types/node": "^16.11.4",
"@types/react": "^18.0.8",
"@types/react-dom": "^18.0.0",
"@types/react-reconciler": "^0.26.6",
"@types/svgo": "^2.6.3",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"babel-loader": "^9.1.3",
"babel-plugin-module-resolver": "^5.0.0",
"copy-webpack-plugin": "^6.4.1",
"core-js": "^3.32.2",
"cross-env": "^5.2.1",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^3.0.1",
"dotenv": "^7.0.0",
"dotenv-expand": "^10.0.0",
"eslint": "^8.56.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-import-alias": "^1.2.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-unused-imports": "^2.0.0",
"gh-pages": "^4.0.0",
"html-webpack-plugin": "^5.5.0",
"isomorphic-fetch": "^3.0.0",
"jest": "^27.3.1",
"jest-css-modules-transform": "^4.4.2",
"mini-css-extract-plugin": "^2.7.6",
"mkcert": "^1.5.0",
"mock-requests": "^1.4.3",
"postcss": "^8.4.5",
"postcss-loader": "^6.2.1",
"postcss-preset-env": "^7.2.3",
"proxy-polyfill": "^0.3.2",
"reflect-metadata": "^0.1.13",
"sass": "^1.43.3",
"sass-loader": "^13.2.1",
"shelljs": "^0.8.5",
"terser-webpack-plugin": "^4.2.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.8.4",
"webpack": "^5.76.2",
"webpack-cli": "^5.1.1",
"webpack-dev-server": "^5.0.2",
"yargs-parser": "^20.2.9"
}
}