apollo-link-state
Version:
An easy way to manage local state with Apollo Link
101 lines (100 loc) • 3.05 kB
JSON
{
"name": "apollo-link-state",
"version": "0.4.2",
"description": "An easy way to manage local state with Apollo Link",
"author": "James Baxley <james@meteor.com>",
"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-state.git"
},
"bugs": {
"url": "https://github.com/apollographql/apollo-link-state/issues"
},
"homepage": "https://github.com/apollographql/apollo-link-state#readme",
"scripts": {
"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",
"build": "tsc -p .",
"bundle": "rollup -c",
"clean": "rimraf lib/* && rimraf coverage/*",
"filesize": "npm run build && npm run build:browser && bundlesize",
"prelint": "npm run lint-fix",
"lint-fix": "prettier --trailing-comma all --single-quote --write \"src/**/*.{j,t}s*\"",
"lint": "tslint --type-check -p tsconfig.json -c tslint.json src/*.ts",
"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": "trap 'kill -9 %1' SIGINT; tsc -w -p . & rollup -w -c"
},
"bundlesize": [
{
"name": "apollo-link-state",
"path": "./lib/bundle.min.js",
"threshold": "1 Kb"
}
],
"peerDependencies": {
"apollo-link": "^1.0.0"
},
"devDependencies": {
"@types/graphql": "0.12.7",
"@types/jest": "22.1.x",
"apollo-cache-inmemory": "^1.1.5",
"apollo-client": "^2.2.0",
"apollo-link": "^1.0.0",
"browserify": "14.5.0",
"bundlesize": "0.15.3",
"codecov": "3.0.0",
"danger": "1.2.0",
"graphql": "0.12.3",
"graphql-tag": "2.5.0",
"jest": "21.2.1",
"lint-staged": "4.3.0",
"pre-commit": "1.2.2",
"prettier": "1.7.4",
"rimraf": "2.6.1",
"rollup": "0.56.x",
"rollup-plugin-local-resolve": "1.0.x",
"rollup-plugin-sourcemaps": "0.4.x",
"ts-jest": "21.1.4",
"tslint": "5.8.0",
"typescript": "2.5.1",
"uglify-js": "3.1.5"
},
"jest": {
"mapCoverage": true,
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
},
"dependencies": {
"apollo-utilities": "^1.0.8",
"graphql-anywhere": "^4.1.0-alpha.0"
},
"lint-staged": {
"*.{ts, tsx, js, jsx}": [
"prettier --trailing-comma all --single-quote --write",
"git add"
],
"!(package).json": [
"prettier --write",
"git add"
]
},
"pre-commit": "lint-staged"
}