summaryrefslogtreecommitdiffstats
path: root/frontend/package.json
blob: 14d5662bc1327b21b184e66c18189ace13605b8a (plain)
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
{
  "name": "nowgql",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start",
    "micro": "micro",
    "micro-dev": "micro-dev ./functions",
    "test": "NODE_ENV=test jest --watch"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "apollo-boost": "^0.1.4",
    "apollo-cache-inmemory": "^1.1.12",
    "apollo-client": "^2.2.8",
    "apollo-link": "^1.2.1",
    "apollo-link-http": "^1.5.3",
    "apollo-link-state": "^0.4.1",
    "babel-plugin-styled-components": "^1.5.1",
    "date-fns": "^2.0.0-alpha.7",
    "downshift": "^1.31.3",
    "express": "^4.16.3",
    "graphql": "^0.13.2",
    "graphql-tag": "^2.8.0",
    "isomorphic-fetch": "^2.2.1",
    "lodash.debounce": "^4.0.8",
    "next": "^5.1.0",
    "next-apollo": "^1.0.13",
    "next-with-apollo": "^1.0.6",
    "nprogress": "^0.2.0",
    "prop-types": "^15.6.1",
    "react": "^16.3.1",
    "react-apollo": "^2.1.3",
    "react-dom": "^16.3.1",
    "react-spinners": "^0.3.1",
    "react-stripe-checkout": "^2.6.3",
    "react-transition-group": "^2.3.0",
    "styled-components": "^3.2.5"
  },
  "devDependencies": {
    "babel-plugin-module-resolver": "^3.1.1",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "enzyme-to-json": "^3.3.3",
    "jest": "^22.4.3"
  },
  "//": "This is out babel config, I prefer this over a .babelrc file",
  "jest": {
    "setupFiles": [
      "<rootDir>/jest.setup.js"
    ],
    "testPathIgnorePatterns": [
      "<rootDir>/.next/",
      "<rootDir>/node_modules/"
    ]
  },
  "babel": {
    "plugins": [
      [
        "module-resolver",
        {
          "alias": {
            "react-apollo": "react-apollo/react-apollo.browser.umd.js"
          }
        }
      ]
    ],
    "env": {
      "development": {
        "presets": [
          "next/babel"
        ],
        "plugins": [
          [
            "styled-components",
            {
              "ssr": true,
              "displayName": true
            }
          ]
        ]
      },
      "production": {
        "presets": [
          "next/babel"
        ],
        "plugins": [
          [
            "styled-components",
            {
              "ssr": true,
              "displayName": false
            }
          ]
        ]
      },
      "test": {
        "presets": [
          [
            "next/babel",
            {
              "preset-env": {
                "modules": "commonjs"
              }
            }
          ]
        ]
      }
    }
  }
}