forked from reactioncommerce/example-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (146 loc) · 4.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "example-storefront",
"version": "3.1.0",
"description": "The Example Storefront serves as a reference for implementing a web based storefront using the Reaction Commerce GraphQL API.",
"keywords": [],
"author": {
"name": "Reaction Commerce",
"email": "engineering@reactioncommerce.com",
"url": "https://reactioncommerce.com"
},
"license": "Apache-2.0",
"sideEffects": false,
"scripts": {
"dev": "echo 'Note: dev script has been renamed to start:dev' && yarn run start:dev",
"build": "yarn run build-clean && NODE_ENV=production IS_BUILDING_NEXTJS=1 next build",
"build-clean": "rimraf .next",
"lint": "eslint .",
"start": "yarn run create-hydra-client && NODE_ENV=production next start -p 4000",
"start:dev": "yarn run create-hydra-client && NODE_ENV=development next dev -p 4000",
"test": "yarn run test:unit",
"test:ci": "yarn run test:unit --ci --runInBand --colors",
"test:unit": "NODE_ENV=jesttest jest",
"test:unit:watch": "NODE_ENV=jesttest jest --watchAll",
"test:link": "blc http://web.reaction.localhost:4000 -ro -filter=3 -e",
"test:file": "NODE_ENV=jesttest jest --watch --no-coverage",
"create-hydra-client": "node createHydraClientIfNecessary.js"
},
"eslintConfig": {
"extends": "@reactioncommerce",
"settings": {
"react": {
"version": "detect"
}
}
},
"dependencies": {
"@apollo/client": "^3.0.0-beta.41",
"@apollo/link-context": "^2.0.0-beta.3",
"@apollo/link-error": "^2.0.0-beta.3",
"@apollo/react-components": "^3.1.3",
"@material-ui/core": "^4.9.7",
"@material-ui/lab": "^4.0.0-alpha.46",
"@material-ui/styles": "^4.9.6",
"@reactioncommerce/components": "~0.67.2",
"@reactioncommerce/components-context": "~1.2.0",
"@segment/snippet": "~4.4.0",
"apollo-client": "^2.6.8",
"body-parser": "~1.19.0",
"classnames": "~2.2.6",
"client-sessions": "^0.8.0",
"compression": "~1.7.3",
"cookie-parser": "~1.4.3",
"date-fns": "~1.30.1",
"envalid": "~4.2.0",
"express": "~4.16.4",
"graphql": "~14.1.1",
"graphql-request": "^2.0.0",
"graphql-tag": "~2.10.1",
"isomorphic-unfetch": "^3.0.0",
"js-cookie": "~2.2.0",
"keymirror": "~0.1.1",
"lodash": "~4.17.20",
"mdi-material-ui": "~5.9.0",
"next": "9.4.1",
"passport": "~0.4.0",
"passport-oauth2": "~1.4.0",
"prop-types": "^15.7.2",
"react": "^16.13.0",
"react-container-query": "~0.11.0",
"react-dom": "^16.13.0",
"react-helmet": "~5.2.0",
"react-stripe-elements": "~2.0.3",
"react-tracking": "~5.6.0",
"reacto-form": "~1.4.0",
"styled-components": "^5.0.1",
"subscriptions-transport-ws": "~0.9.15",
"swr": "^0.1.18"
},
"devDependencies": {
"@reactioncommerce/eslint-config": "~1.9.0",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^10.2.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"babel-preset-jest": "^26.0.0",
"broken-link-checker": "~0.7.8",
"eslint": "~4.19.1",
"eslint-plugin-import": "~2.16.0",
"eslint-plugin-jest": "~21.27.2",
"eslint-plugin-jsx-a11y": "~6.2.1",
"eslint-plugin-promise": "~3.8.0",
"eslint-plugin-react": "~7.12.4",
"jest": "26.0.0",
"jest-junit": "~6.2.1",
"jest-transform-graphql": "~2.1.0",
"rimraf": "~2.6.3",
"snyk": "~1.126.0"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{js,jsx}",
"!**/reports/**",
"!**/dist/**",
"!**/node_modules/**",
"!**/vendor/**"
],
"coverageDirectory": "reports/coverage",
"modulePathIgnorePatterns": [
"<rootDir>/node_nodules/",
"<rootDir>/build/",
"<rootDir>/lib/tracking/utils"
],
"moduleNameMapper": {
"^hocs(.*)$": "<rootDir>/hocs$1",
"^hooks(.*)$": "<rootDir>/hooks$1",
"^context(.*)$": "<rootDir>/context$1",
"^lib(.*)$": "<rootDir>/lib$1",
"^containers(.*)$": "<rootDir>/containers$1",
"^components(.*)$": "<rootDir>/components$1",
"^translations(.*)$": "<rootDir>/translations$1",
"^staticUtils(.*)$": "<rootDir>/staticUtils$1"
},
"reporters": [
"default",
"jest-junit"
],
"roots": [
"<rootDir>"
],
"setupFilesAfterEnv": [
"<rootDir>/setupTests.js"
],
"transform": {
"\\.(gql|graphql)$": "jest-transform-graphql",
".*": "babel-jest"
}
},
"jest-junit": {
"output": "reports/junit/junit.xml",
"suiteName": "jest-tests"
},
"prettier": {
"arrowParens": "always"
}
}