-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
152 lines (152 loc) · 4.94 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
{
"name": "orgrek-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.11.0",
"@mui/material": "^5.11.7",
"@mui/utils": "^5.11.9",
"@mui/x-data-grid": "^6.6.0",
"@mui/x-date-pickers": "^5.0.17",
"bootstrap": "^5.1.3",
"classnames": "^2.3.2",
"date-fns": "^2.29.3",
"date-fns-tz": "^2.0.0",
"dateformat": "^5.0.3",
"i18next": "^21.1.0",
"i18next-browser-languagedetector": "^6.1.2",
"i18next-chained-backend": "^4.2.0",
"i18next-http-backend": "^1.3.1",
"i18next-resources-to-backend": "^1.1.3",
"lodash": "^4.17.21",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-datepicker": "^4.3.0",
"react-dom": "^18.2.0",
"react-i18next": "^11.12.0",
"react-redux": "^7.2.4",
"react-redux-i18n": "^1.9.3",
"react-router-dom": "^6.11.1",
"redux": "^4.1.1",
"redux-thunk": "^2.3.0",
"styled-components": "^5.3.5",
"web-vitals": "^1.0.1",
"yup": "^1.1.0"
},
"devDependencies": {
"@babel/preset-env": "^7.15.8",
"@babel/preset-react": "^7.14.5",
"@reduxjs/toolkit": "^1.6.2",
"@storybook/addon-a11y": "^7.0.8",
"@storybook/addon-actions": "^7.0.8",
"@storybook/addon-coverage": "^0.0.8",
"@storybook/addon-essentials": "^7.0.8",
"@storybook/addon-interactions": "^7.0.8",
"@storybook/addon-links": "^7.0.8",
"@storybook/addon-styling": "^1.0.6",
"@storybook/jest": "^0.1.0",
"@storybook/manager-api": "^7.0.9",
"@storybook/node-logger": "^7.0.8",
"@storybook/preset-create-react-app": "^7.0.8",
"@storybook/react": "^7.0.8",
"@storybook/react-webpack5": "^7.0.8",
"@storybook/test-runner": "^0.10.0",
"@storybook/testing-library": "0.1.0",
"@storybook/theming": "^7.0.9",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.0.1",
"@testing-library/user-event": "^14.4.3",
"axe-playwright": "^1.2.3",
"concurrently": "^7.6.0",
"cypress": "^10.1.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-cypress": "^3.6.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-storybook": "^0.6.12",
"http-server": "^14.1.1",
"husky": "^8.0.3",
"i18next-scanner": "^4.2.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^29.5.0",
"json-server": "^0.16.3",
"lint-staged": "^13.1.1",
"msw": "^1.1.0",
"msw-storybook-addon": "^1.8.0",
"prettier": "2.8.4",
"react-scripts": "^5.0.1",
"react-test-renderer": "^18.2.0",
"storybook": "^7.0.8",
"storybook-addon-react-router-v6": "^0.3.6",
"wait-on": "^7.0.1"
},
"jest": {
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx}",
"!src/**/*.stories.{js,jsx}",
"!<rootDir>/node_modules/",
"!<rootDir>/path/to/dir/"
]
},
"scripts": {
"start": "react-scripts start",
"start:server": "json-server --watch db.json --routes routes.json --port 3003",
"dev": "REACT_APP_GIT_HASH=\"$(git rev-parse --short=7 HEAD)\" react-scripts start",
"build": "REACT_APP_GIT_HASH=\"$(git rev-parse --short=7 HEAD)\" react-scripts build",
"postbuild": "rm build/mockServiceWorker.js",
"test": "TZ=Europe/Helsinki jest --coverage",
"eject": "react-scripts eject",
"lint": "eslint --fix .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"cypress:open": "cypress open",
"storybook": "storybook dev -p 6006",
"storybook:test": "test-storybook --coverage --url http://localhost:6006",
"storybook:test:ci": "concurrently -k --kill-others-on-fail -s first -n \"storybook,test\" -c \"magenta,blue\" \"http-server storybook-static -d --port 6006\" \"echo ODOTELLAAN... && wait-on -t 42s -v tcp:localhost:6006 && npm run storybook:test\"",
"storybook:test:ci:admin": "concurrently -k -s first -n \"storybook,test\" -c \"magenta,blue\" \"http-server storybook-static -a localhost --port 6006 --silent\" \"wait-on tcp:6006 && jest src/stories/components/admin/*.stories.js\"",
"storybook:build": "storybook build",
"i18n": "i18next-scanner --config i18next-scanner.config.js",
"prepare": "husky install"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"*.{js,jsx}": "eslint --cache --fix",
"*.{js,jsx,json,css,html,yml,md}": "prettier --write"
},
"msw": {
"workerDirectory": "public"
}
}