-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.json
108 lines (108 loc) · 4.63 KB
/
template.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
{
"package": {
"dependencies": {
"@reduxjs/toolkit": "^1.8.3",
"@rio-cloud/rio-notifications-component": "^0.2.2",
"@rio-cloud/rio-session-expired-info": "^0.9.12",
"@rio-cloud/rio-uikit": "^0.16.1-beta.12",
"@rio-cloud/rio-user-menu-component": "^2.0.0",
"@sentry/browser": "6.19.2",
"iframe-resizer-react": "^1.1.0",
"lodash": "^4.17.21",
"oidc-client-ts": "^2.0.5",
"qs": "6.10.2",
"react": "^17.0.2",
"react-app-polyfill": "^3.0.0",
"react-dom": "^17.0.2",
"react-intl": "^5.25.1",
"react-redux": "^7.2.8",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0"
},
"devDependencies": {
"@redux-devtools/extension": "^3.2.2",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.0.0",
"@types/lodash": "^4.14.176",
"@types/node": "^14.17.32",
"@types/qs": "^6.9.7",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-redux": "^7.1.20",
"@types/react-router": "^5.1.17",
"@types/react-router-dom": "^5.3.2",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"concurrently": "^6.0.0",
"css-loader": "^6.0.0",
"cypress": "^9.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-compat": "^3.13.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.2.4",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.27.0",
"eslint-plugin-react-hooks": "^4.3.0",
"http-proxy-middleware": "^1.3.1",
"husky": "^7.0.0",
"jest-changed-files": "^27.0.0",
"jest-environment-jsdom": "^27.0.0",
"jest-junit": "^12.0.0",
"license-checker": "^25.0.1",
"lint-staged": "^12.0.0",
"node-env-run": "^4.0.2",
"nodemon": "^2.0.14",
"prettier": "^2.5.0",
"react-app-rewired": "^2.1.8",
"source-map-explorer": "^2.5.2",
"start-server-and-test": "^1.12.1",
"style-loader": "^1.3.0",
"typescript": "^4.4.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": ["prettier --write", "git add"]
},
"scripts": {
"start": "concurrently --kill-others \"npm run-script dev-mock-server\" \"react-app-rewired start\"",
"build": "react-app-rewired --max_old_space_size=4096 build",
"test": "react-app-rewired test",
"pretest": "tsc",
"eject": "react-scripts eject",
"license-check": "license-checker --production --json --onlyAllow \"`cat whitelist.txt`\" --excludePackages \"rio-startertemplate-web@0.1.0\" --out licenses.txt",
"lint": "eslint src",
"lint-fix": "npm run lint -- --fix",
"audit": "npm audit --production --registry https://registry.npmjs.org --parseable",
"dev-mock-server": "nodenv mocks/rio-starter-devmocks.js --exec nodemon",
"analyze": "source-map-explorer \"build/static/js/*.js\"",
"format-code": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
"pull-translations": "phrase pull --access_token $PHRASEAPP_ACCESS_TOKEN && npm run merge-translations",
"push-translations": "phrase push --access_token $PHRASEAPP_ACCESS_TOKEN",
"merge-translations": "nodenv ./mergeTranslations.js",
"cypress-open": "cypress open",
"cypress-run": "cypress run",
"cypress-ci": "start-server-and-test start http://localhost:3000 cypress-run"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": ["last 2 versions", "last 5 Chrome versions", "Firefox >= 60", "Edge >= 15", "Safari >= 10"],
"jest": {
"moduleNameMapper": {
"ReactDOM": "react-dom"
},
"moduleDirectories": ["node_modules", "mocks"],
"reporters": ["default", "jest-junit"]
},
"jest-junit": {
"outputDirectory": "./results/jest"
}
}
}