forked from apollographql/react-apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
160 lines (160 loc) · 4.76 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
153
154
155
156
157
158
159
160
{
"name": "react-apollo",
"version": "1.4.16",
"description": "React data container for Apollo Client",
"main": "lib/react-apollo.umd.js",
"module": "./lib/index.js",
"jsnext:main": "./lib/index.js",
"browser": "lib/react-apollo.browser.umd.js",
"typings": "lib/index.d.ts",
"scripts": {
"deploy": "./scripts/deploy.sh",
"danger": "danger run --verbose",
"test": "npm run compile && jest",
"testonly": "jest",
"test-watch": "jest --watch",
"posttest": "npm run lint && npm run type-check",
"filesize": "npm run compile:browser && bundlesize",
"type-check":
"tsc ./test/typescript.ts --noEmit --jsx react --noEmitOnError --lib es6,dom --experimentalDecorators",
"compile": "tsc",
"bundle":
"rollup -c && rollup -c rollup.browser.config.js && rollup -c rollup.test-utils.config.js",
"compile:browser":
"rm -rf ./dist && mkdir ./dist && browserify ./lib/react-apollo.browser.umd.js --i graphql-tag --i react --i apollo-client -o=./dist/index.js && npm run minify:browser && npm run compress:browser",
"minify:browser":
"uglifyjs -c -m -o ./dist/index.min.js -- ./dist/index.js",
"compress:browser": "./scripts/gzip.js --file=./dist/index.min.js",
"watch": "tsc -w",
"lint": "tslint 'src/*.ts*' && tslint 'test/*.ts*'",
"lint-staged": "lint-staged",
"lint-fix":
"prettier --trailing-comma all --single-quote --write \"{src,test}/**/*.ts*\"",
"postcompile": "npm run bundle",
"prepublish": "npm run compile"
},
"bundlesize": [
{
"path": "./dist/index.min.js",
"threshold": "12 Kb"
}
],
"lint-staged": {
"*.ts*": [
"prettier --trailing-comma all --single-quote --write",
"git add"
],
"*.js*": ["prettier --trailing-comma all --single-quote --write", "git add"]
},
"pre-commit": "lint-staged",
"repository": {
"type": "git",
"url": "apollostack/react-apollo"
},
"keywords": [
"ecmascript",
"es2015",
"jsnext",
"javascript",
"relay",
"npm",
"react"
],
"author": "James Baxley <[email protected]>",
"babel": {
"presets": ["react-native"]
},
"jest": {
"preset": "jest-react-native",
"testEnvironment": "jsdom",
"transform": {
".*": "./preprocessor.js"
},
"moduleFileExtensions": ["ts", "tsx", "js", "json"],
"modulePathIgnorePatterns": [
"<rootDir>/examples",
"<rootDir>/test/flow.js",
"<rootDir>/test/typescript.ts"
],
"projects": ["<rootDir>", "<rootDir>/examples/*"],
"testRegex": "(/test/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"setupFiles": ["<rootDir>/scripts/tests.js"]
},
"license": "MIT",
"peerDependencies": {
"react": "0.14.x || 15.* || ^15.0.0 || ^16.0.0",
"redux": "^2.0.0 || ^3.0.0"
},
"devDependencies": {
"@types/enzyme": "2.8.12",
"@types/graphql": "0.9.4",
"@types/invariant": "2.2.29",
"@types/isomorphic-fetch": "0.0.34",
"@types/jest": "20.0.8",
"@types/lodash": "4.14.80",
"@types/node": "8.0.47",
"@types/object-assign": "4.0.30",
"@types/react": "15.6.5",
"@types/react-addons-test-utils": "0.14.20",
"@types/react-dom": "15.5.6",
"@types/react-redux": "5.0.12",
"@types/redux-form": "7.0.8",
"@types/redux-immutable": "3.0.38",
"@types/sinon": "2.3.7",
"babel-jest": "20.0.3",
"babel-preset-react-native": "3.0.2",
"browserify": "14.5.0",
"bundlesize": "0.15.3",
"cheerio": "0.22.0",
"colors": "1.1.2",
"danger": "1.2.0",
"enzyme": "3.1.0",
"enzyme-adapter-react-16": "1.0.2",
"enzyme-to-json": "1.6.0",
"flow-bin": "0.57.3",
"graphql": "0.11.7",
"immutable": "3.8.2",
"isomorphic-fetch": "2.2.1",
"jest": "20.0.4",
"jest-react-native": "18.0.0",
"jsdom": "11.3.0",
"lint-staged": "4.3.0",
"lodash": "4.17.4",
"minimist": "1.2.0",
"mobx": "3.3.1",
"mobx-react": "4.3.3",
"pre-commit": "1.2.2",
"prettier": "1.7.4",
"pretty-bytes": "4.0.2",
"react": "16.0.0",
"react-addons-test-utils": "15.6.0",
"react-dom": "16.0.0",
"react-native": "0.49.3",
"react-redux": "5.0.6",
"react-test-renderer": "16.0.0",
"recompose": "0.26.0",
"redux": "3.7.2",
"redux-form": "6.8.0",
"redux-immutable": "4.0.0",
"redux-loop": "2.2.2",
"rollup": "0.50.0",
"source-map-support": "0.5.0",
"swapi-graphql": "0.0.6",
"travis-weigh-in": "1.0.2",
"ts-jest": "20.0.14",
"tslint": "5.7.0",
"typescript": "2.4.2",
"typescript-require": "0.2.9",
"typings": "2.1.1",
"uglify-js": "3.1.5"
},
"dependencies": {
"apollo-client": "^1.4.0",
"graphql-tag": "^2.0.0",
"hoist-non-react-statics": "^2.2.0",
"invariant": "^2.2.1",
"lodash.pick": "^4.4.0",
"object-assign": "^4.0.1",
"prop-types": "^15.5.8"
}
}