Files

165 lines
5.0 KiB
JSON

{
"name": "react-apollo",
"version": "2.0.1",
"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 && NODE_ENV=production 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 --compress dead_code=true,unused=true -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*' --type-check -p tsconfig.json",
"lint-staged": "lint-staged",
"lint-fix":
"prettier --trailing-comma all --single-quote --write \"{src,test}/**/*.ts*\"",
"postcompile": "npm run bundle",
"prepublishOnly": "npm run compile"
},
"bundlesize": [
{
"path": "./dist/index.min.js",
"threshold": "8.6 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": {
"apollo-client": "^2.0.0",
"react": "0.14.x || 15.* || ^15.0.0 || ^16.0.0"
},
"devDependencies": {
"@types/enzyme": "2.8.9",
"@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.74",
"@types/node": "8.0.31",
"@types/object-assign": "4.0.30",
"@types/react": "15.6.4",
"@types/react-addons-test-utils": "0.14.19",
"@types/react-dom": "15.5.5",
"@types/react-redux": "5.0.9",
"@types/redux-form": "7.0.5",
"@types/redux-immutable": "3.0.37",
"@types/sinon": "2.3.5",
"@types/zen-observable": "^0.5.3",
"apollo-cache-inmemory": "^1.0.0",
"apollo-client": "^2.0.0",
"babel-jest": "20.0.3",
"babel-preset-react-native": "3.0.2",
"browserify": "14.4.0",
"bundlesize": "0.14.4",
"cheerio": "0.22.0",
"colors": "1.1.2",
"danger": "1.2.0",
"enzyme": "3.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"enzyme-to-json": "1.6.0",
"flow-bin": "0.52.0",
"graphql": "0.11.4",
"graphql-tag": "^2.0.0",
"immutable": "3.8.1",
"isomorphic-fetch": "2.2.1",
"jest": "20.0.4",
"jest-react-native": "18.0.0",
"jsdom": "11.2.0",
"lint-staged": "4.2.3",
"lodash": "4.17.4",
"minimist": "1.2.0",
"mobx": "3.3.0",
"mobx-react": "4.3.2",
"pre-commit": "1.2.2",
"prettier": "1.7.2",
"pretty-bytes": "4.0.2",
"react": "16.0.0",
"react-addons-test-utils": "15.6.0",
"react-dom": "16.0.0",
"react-native": "0.48.4",
"react-redux": "5.0.6",
"react-test-renderer": "16.0.0",
"recompose": "0.25.1",
"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.4.18",
"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.1",
"zen-observable-ts": "^0.4.4"
},
"dependencies": {
"apollo-link": "^1.0.0",
"hoist-non-react-statics": "^2.2.0",
"invariant": "^2.2.1",
"lodash.flowright": "^3.5.0",
"lodash.pick": "^4.4.0",
"prop-types": "^15.5.8"
}
}