-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
132 lines (130 loc) · 3.2 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
{
"name": "sick-fits-frontend",
"version": "1.0.0",
"description": "Sick Fits! An example React, GraphQL, Next and Apollo",
"main": "index.js",
"scripts": {
"dev": "next -p 7777",
"build": "next build",
"start": "next start",
"test": "NODE_ENV=test jest --watch",
"test-win": "SET NODE_ENV=test&& jest --watch",
"heroku-postbuild": "next build",
"analyze": "cross-env ANALYZE=true next build",
"deploy":"next run build && next export"
},
"author": "",
"license": "ISC",
"dependencies": {
"@apollo/client": "^3.0.0-beta.19",
"@next/bundle-analyzer": "^9.1.7",
"@zeit/next-bundle-analyzer": "^0.1.2",
"apollo-boost": "^0.1.28",
"apollo-cache-inmemory": "^1.6.5",
"apollo-client": "^2.6.8",
"apollo-link": "^1.2.13",
"apollo-link-error": "^1.1.12",
"apollo-link-http": "^1.5.16",
"apollo-link-state": "^0.4.2",
"axios": "^0.19.1",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-styled-components": "^1.10.6",
"cross-env": "^6.0.3",
"date-fns": "^2.8.1",
"downshift": "^2.2.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"graphql": "^14.5.8",
"graphql-tag": "^2.10.1",
"lodash.debounce": "^4.0.8",
"mem": "^6.0.1",
"next": "^9.3.2",
"next-with-apollo": "^3.4.0",
"nprogress": "^0.2.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-adopt": "^0.6.0",
"react-apollo": "^3.0.1",
"react-dom": "^16.12.0",
"react-stripe-checkout": "^2.6.3",
"react-transition-group": "^2.9.0",
"serialize-javascript": "^2.1.2",
"styled-components": "^3.4.10",
"waait": "^1.0.5"
},
"devDependencies": {
"babel-jest": "^23.6.0",
"babel-plugin-module-resolver": "^3.2.0",
"casual": "^1.6.2",
"enzyme-to-json": "^3.4.3",
"graphql-tools": "^4.0.6",
"jest": "^23.6.0",
"jest-transform-graphql": "^2.1.0"
},
"jest": {
"setupTestFrameworkScriptFile": "<rootDir>/jest.setup.js",
"testPathIgnorePatterns": [
"<rootDir>/.next/",
"<rootDir>/node_modules/"
],
"transform": {
"\\.(gql|graphql)$": "jest-transform-graphql",
".*": "babel-jest",
"^.+\\.js?$": "babel-jest"
}
},
"//": "This is our babel config, I prefer this over a .babelrc file",
"babel": {
"env": {
"development": {
"presets": [
"next/babel"
],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true
}
]
]
},
"production": {
"presets": [
"next/babel"
],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true
}
]
]
},
"test": {
"presets": [
[
"next/babel",
{
"preset-env": {
"modules": "commonjs"
}
}
]
],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true
}
]
]
}
}
}
}