1 | {
|
2 | "name": "apollo-link-state",
|
3 | "version": "0.4.2",
|
4 | "description": "An easy way to manage local state with Apollo Link",
|
5 | "author": "James Baxley <james@meteor.com>",
|
6 | "license": "MIT",
|
7 | "main": "./lib/bundle.umd.js",
|
8 | "module": "./lib/index.js",
|
9 | "jsnext:main": "./lib/index.js",
|
10 | "typings": "./lib/index.d.ts",
|
11 | "repository": {
|
12 | "type": "git",
|
13 | "url": "git+https://github.com/apollographql/apollo-link-state.git"
|
14 | },
|
15 | "bugs": {
|
16 | "url": "https://github.com/apollographql/apollo-link-state/issues"
|
17 | },
|
18 | "homepage": "https://github.com/apollographql/apollo-link-state#readme",
|
19 | "scripts": {
|
20 | "build:browser": "browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-link --i apollo-utilities --i graphql-anywhere -i graphql && npm run minify:browser",
|
21 | "build": "tsc -p .",
|
22 | "bundle": "rollup -c",
|
23 | "clean": "rimraf lib/* && rimraf coverage/*",
|
24 | "filesize": "npm run build && npm run build:browser && bundlesize",
|
25 | "prelint": "npm run lint-fix",
|
26 | "lint-fix": "prettier --trailing-comma all --single-quote --write \"src/**/*.{j,t}s*\"",
|
27 | "lint": "tslint --type-check -p tsconfig.json -c tslint.json src/*.ts",
|
28 | "lint-staged": "lint-staged",
|
29 | "minify:browser": "uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js",
|
30 | "postbuild": "npm run bundle",
|
31 | "prebuild": "npm run clean",
|
32 | "prepublishOnly": "npm run clean && npm run build",
|
33 | "test": "jest",
|
34 | "coverage": "npm run lint && jest --coverage",
|
35 | "watch": "trap 'kill -9 %1' SIGINT; tsc -w -p . & rollup -w -c"
|
36 | },
|
37 | "bundlesize": [
|
38 | {
|
39 | "name": "apollo-link-state",
|
40 | "path": "./lib/bundle.min.js",
|
41 | "threshold": "1 Kb"
|
42 | }
|
43 | ],
|
44 | "peerDependencies": {
|
45 | "apollo-link": "^1.0.0"
|
46 | },
|
47 | "devDependencies": {
|
48 | "@types/graphql": "0.12.7",
|
49 | "@types/jest": "22.1.x",
|
50 | "apollo-cache-inmemory": "^1.1.5",
|
51 | "apollo-client": "^2.2.0",
|
52 | "apollo-link": "^1.0.0",
|
53 | "browserify": "14.5.0",
|
54 | "bundlesize": "0.15.3",
|
55 | "codecov": "3.0.0",
|
56 | "danger": "1.2.0",
|
57 | "graphql": "0.12.3",
|
58 | "graphql-tag": "2.5.0",
|
59 | "jest": "21.2.1",
|
60 | "lint-staged": "4.3.0",
|
61 | "pre-commit": "1.2.2",
|
62 | "prettier": "1.7.4",
|
63 | "rimraf": "2.6.1",
|
64 | "rollup": "0.56.x",
|
65 | "rollup-plugin-local-resolve": "1.0.x",
|
66 | "rollup-plugin-sourcemaps": "0.4.x",
|
67 | "ts-jest": "21.1.4",
|
68 | "tslint": "5.8.0",
|
69 | "typescript": "2.5.1",
|
70 | "uglify-js": "3.1.5"
|
71 | },
|
72 | "jest": {
|
73 | "mapCoverage": true,
|
74 | "transform": {
|
75 | ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
|
76 | },
|
77 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
78 | "moduleFileExtensions": [
|
79 | "ts",
|
80 | "tsx",
|
81 | "js",
|
82 | "json"
|
83 | ]
|
84 | },
|
85 | "dependencies": {
|
86 | "apollo-utilities": "^1.0.8",
|
87 | "graphql-anywhere": "^4.1.0-alpha.0"
|
88 | },
|
89 | "lint-staged": {
|
90 | "*.{ts, tsx, js, jsx}": [
|
91 | "prettier --trailing-comma all --single-quote --write",
|
92 | "git add"
|
93 | ],
|
94 | "!(package).json": [
|
95 | "prettier --write",
|
96 | "git add"
|
97 | ]
|
98 | },
|
99 | "pre-commit": "lint-staged"
|
100 | }
|