forked from apollographql/apollo-link-persisted-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
112 lines (112 loc) · 3.16 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
{
"name": "apollo-link-persisted-queries",
"version": "0.2.2",
"description": "Use persisted queries with Apollo Link",
"author": "James Baxley <[email protected]>",
"license": "MIT",
"main": "./lib/bundle.umd.js",
"module": "./lib/index.js",
"jsnext:main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/apollographql/apollo-link-persisted-queries.git"
},
"bugs": {
"url": "https://github.com/apollographql/apollo-link-persisted-queries/issues"
},
"homepage": "https://github.com/apollographql/apollo-link-persisted-queries#readme",
"scripts": {
"build:browser": "browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-link --i graphql && npm run minify:browser",
"build": "tsc -p .",
"bundle": "rollup -c",
"clean": "rimraf lib/* && rimraf coverage/*",
"coverage:upload": "codecov",
"danger": "danger run --verbose",
"filesize": "npm run build && npm run build:browser && bundlesize",
"lint": "prettier --trailing-comma all --single-quote --write \"src/**/*.{j,t}s*\"",
"lint-staged": "lint-staged",
"minify:browser": "uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js",
"postbuild": "npm run bundle",
"prebuild": "npm run clean",
"prepublishOnly": "npm run clean && npm run build",
"test": "jest",
"coverage": "npm run lint && jest --coverage",
"watch": "tsc -w -p ."
},
"dependencies": {
"apollo-link": "^1.2.1",
"sha.js": "^2.4.0",
"@types/sha.js": "^2.4.0"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
},
"devDependencies": {
"@types/graphql": "0.11.5",
"@types/jest": "21.1.5",
"@types/node": "^8.0.53",
"apollo-cache-inmemory": "^1.1.4",
"apollo-client": "^2.0.4",
"apollo-link-http": "^1.5.0",
"browserify": "14.5.0",
"bundlesize": "0.15.3",
"codecov": "^3.1.0",
"danger": "^6.0.2",
"graphql": "^14.0.2",
"graphql-tag": "^2.5.0",
"jest": "^23.6.0",
"jest-fetch-mock": "^1.3.3",
"js-sha256": "^0.7.1",
"lerna": "2.4.0",
"lint-staged": "4.3.0",
"lodash": "^4.17.4",
"pre-commit": "1.2.2",
"prettier": "1.7.4",
"react": "^16.2.0",
"react-apollo": "^2.0.4",
"react-dom": "^16.2.0",
"rimraf": "2.6.1",
"rollup": "0.45.2",
"ts-jest": "21.1.4",
"typescript": "2.5.1",
"uglify-js": "3.1.5"
},
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"setupFiles": [
"./scripts/jest.js"
]
},
"bundlesize": [
{
"name": "apollo-link-persisted-queries",
"path": "./lib/bundle.min.js",
"maxSize": "3.9 kb"
}
],
"lint-staged": {
"*.ts*": [
"prettier --trailing-comma all --single-quote --write",
"git add"
],
"*.js*": [
"prettier --trailing-comma all --single-quote --write",
"git add"
],
"*.json*": [
"prettier --write",
"git add"
]
},
"pre-commit": "lint-staged"
}