-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
131 lines (131 loc) · 3.53 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
{
"name": "bloodhub-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@apollo/react-hooks": "^3.1.3",
"@material-ui/core": "^4.9.0",
"@material-ui/icons": "^4.5.1",
"@material-ui/lab": "^4.0.0-alpha.40",
"apollo-boost": "^0.4.7",
"apollo-cache-inmemory": "^1.6.5",
"axios": "^0.19.2",
"dotenv": "^8.2.0",
"formik": "^2.1.3",
"formik-material-ui": "^2.0.0-alpha.3",
"graphql": "^14.6.0",
"graphql.macro": "^1.4.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.3.0",
"styled-components": "^5.0.0",
"yup": "^0.28.1"
},
"scripts": {
"start": "react-scripts start",
"start:test": "react-scripts -r @cypress/instrument-cra start",
"build": "react-scripts build",
"test": "yarn jest:test --coverage && yarn cy:test",
"jest:test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public",
"cy:open": "cypress open --env coverage=false",
"cy:run": "cypress run --spec cypress/integration/signup.spec.js",
"cy:test": "start-server-and-test start:test http-get://localhost:3000 cy:run",
"lint": "eslint src/**/*.js --max-warnings 5"
},
"eslintConfig": {
"extends": "react-app",
"globals": {
"cy": "readonly",
"Cypress": "readonly",
"context": "readonly"
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.stories.js",
"!src/utils/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/node_modules/"
],
"coverageThreshold": {
"global": {
"branches": 25,
"functions": 25,
"lines": 25,
"statements": 25
}
},
"snapshotSerializers": [
"snapshot-diff/serializer.js"
]
},
"nyc": {
"report-dir": "cypress-coverage",
"include": [
"src/**/*.js"
],
"exclude": [
"src/util.js"
]
},
"devDependencies": {
"@apollo/react-testing": "^3.1.3",
"@cypress/code-coverage": "^1.11.0",
"@cypress/instrument-cra": "^1.0.0",
"@iam4x/cypress-graphql-mock": "^0.0.1",
"@storybook/addon-actions": "^5.3.9",
"@storybook/addon-links": "^5.3.9",
"@storybook/addons": "^5.3.9",
"@storybook/react": "^5.3.9",
"@testing-library/cypress": "^5.1.0",
"@testing-library/dom": "^6.11.0",
"@testing-library/jest-dom": "^5.0.2",
"@testing-library/react": "^9.4.0",
"axios-mock-adapter": "^1.17.0",
"cross-env": "^7.0.0",
"cypress": "^3.8.3",
"faker": "^4.1.0",
"husky": "^4.2.1",
"istanbul-lib-coverage": "^3.0.0",
"jest-extended": "^0.11.5",
"jest-localstorage-mock": "^2.4.0",
"lint-staged": "^10.0.3",
"nyc": "^15.0.0",
"prettier": "^1.19.1",
"redux-mock-store": "^1.5.4",
"snapshot-diff": "^0.6.2",
"start-server-and-test": "^1.10.8"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"post-checkout": "if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi",
"post-merge": "runYarnLock",
"post-rebase": "yarn install"
}
},
"lint-staged": {
"src/**/*.js": [
"eslint --fix",
"prettier --write",
"git add",
"cross-env CI=true yarn jest:test --bail --findRelatedTests"
]
}
}