forked from react-boilerplate/react-boilerplate-cra-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
173 lines (173 loc) · 5.52 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
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
{
"name": "cra-template-rb",
"description": "The official React Boilerplate template for Create React App",
"version": "1.2.5",
"repository": {
"type": "git",
"url": "https://github.com/react-boilerplate/react-boilerplate-cra-template.git"
},
"license": "MIT",
"engines": {
"node": ">=14.x"
},
"bugs": {
"url": "https://github.com/react-boilerplate/react-boilerplate-cra-template/issues"
},
"main": "template.json",
"files": [
"template",
"template.json"
],
"keywords": [
"react",
"create-react-app",
"template",
"typescript",
"redux",
"reduxjs",
"react-redux",
"react-boilerplate",
"styled-components"
],
"scripts": {
"// ---DEFAULT CRA---": "",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"// ---TEMPLATE---": "Scripts will be also in the template",
"start:prod": "yarn run build && serve -s build",
"test:generators": "ts-node ./internals/testing/generators/test-generators.ts",
"checkTs": "tsc --noEmit",
"eslint": "eslint --ext js,ts,tsx",
"lint": "yarn run eslint src",
"lint:fix": "yarn run eslint --fix src",
"lint:css": "stylelint src/**/*.css",
"generate": "plop --plopfile internals/generators/plopfile.ts",
"cleanAndSetup": "ts-node ./internals/scripts/clean.ts",
"prettify": "prettier --write",
"extract-messages": "i18next-scanner --config=internals/extractMessages/i18next-scanner.config.js",
"// ---TESTING TEMPLATE---": "",
"test:internals": "yarn run test:extract-messages && yarn run test:generators",
"test:extract-messages": "jest --config=internals/extractMessages/jest.config.js",
"verify-startingTemplate-changes": "ts-node ./internals/scripts/verify-startingTemplate-changes.ts",
"test:coverage": "yarn run test --watchAll=false --coverage",
"test:cra": "yarn run create:cra-app && cd generated-cra-app && yarn run test:generators && yarn run lint && yarn run checkTs && yarn run cleanAndSetup && yarn run lint && yarn run checkTs",
"// ---BUILDING TEMPLATE---": "",
"create:npm-package": "ts-node ./internals/scripts/create-npm-package.script.ts",
"create:cra-app": "ts-node ./internals/scripts/create-cra-app.script.ts",
"// ---PUBLISHING---": "",
"publish:github": "cross-env PUBLIC_URL='/react-boilerplate-cra-template' yarn build && gh-pages -d build",
"changelog": "ts-node ./internals/scripts/create-changelog.script.ts",
"release": "standard-version",
"publish:npm": "yarn run create:npm-package && yarn publish .cra-template-rb --non-interactive"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"yarn run eslint --fix"
],
"*.{md,json}": [
"prettier --write"
]
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*/*.d.ts",
"!src/**/*/Loadable.{js,jsx,ts,tsx}",
"!src/**/*/messages.ts",
"!src/reportWebVitals.ts",
"!src/**/*/types.ts",
"!src/index.tsx"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
}
},
"dependencies": {
"@reduxjs/toolkit": "1.7.1",
"fontfaceobserver": "2.1.0",
"i18next": "21.6.6",
"i18next-browser-languagedetector": "6.1.2",
"react": "18.1.0",
"react-app-polyfill": "3.0.0",
"react-dom": "^18.0.0",
"react-helmet-async": "1.3.0",
"react-i18next": "11.16.5",
"react-is": "18.1.0",
"react-redux": "7.2.6",
"react-router-dom": "5.2.0",
"redux-injectors": "1.3.0",
"redux-saga": "1.1.3",
"sanitize.css": "13.0.0",
"styled-components": "5.3.3",
"web-vitals": "2.1.2"
},
"devDependencies": {
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.2.0",
"@types/fontfaceobserver": "2.1.0",
"@types/jest": "27.4.0",
"@types/node": "14.14.31",
"@types/react": "18.0.2",
"@types/react-dom": "18.0.0",
"@types/react-redux": "7.1.22",
"@types/react-router-dom": "5.3.2",
"@types/react-test-renderer": "18.0.0",
"@types/rimraf": "3.0.2",
"@types/shelljs": "0.8.11",
"@types/styled-components": "5.1.20",
"@types/testing-library__jest-dom": "5.14.2",
"@types/webpack": "5.28.0",
"@types/webpack-env": "1.16.3",
"chalk": "4.1.2",
"cross-env": "7.0.3",
"devmoji": "2.3.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react-hooks": "4.3.0",
"gh-pages": "3.2.3",
"git-branch-is": "4.0.0",
"husky": "7.0.4",
"i18next-scanner": "3.1.0",
"inquirer": "7.3.3",
"inquirer-directory": "2.2.0",
"jest-styled-components": "7.0.8",
"lint-staged": "12.1.7",
"node-plop": "0.26.2",
"plop": "2.7.4",
"prettier": "2.5.1",
"react-scripts": "5.0.0",
"react-test-renderer": "18.1.0",
"replace-in-file": "6.3.2",
"rimraf": "3.0.2",
"serve": "13.0.2",
"shelljs": "0.8.5",
"standard-version": "9.3.2",
"stylelint": "14.2.0",
"stylelint-config-recommended": "6.0.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.10.0",
"ts-jest": "27.1.3",
"ts-node": "10.4.0",
"typescript": "4.5.4"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}