mirror of
https://github.com/expo/react-apollo.git
synced 2026-11-21 07:59:38 -10:00
* increase setTimeout for intermittent test failre * remove query before creating new observable * add note about order until I can think how to test it * don't create new observable during recyle * Update package.json
151 lines
4.3 KiB
JSON
151 lines
4.3 KiB
JSON
{
|
|
"name": "react-apollo",
|
|
"version": "1.4.0",
|
|
"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": "npm run compile && npm test && npm publish --tag next && git push --tags",
|
|
"test": "npm run compile && jest",
|
|
"testonly": "jest",
|
|
"test-watch": "jest --watch",
|
|
"posttest": "npm run lint",
|
|
"filesize": "npm run compile:browser && ./scripts/filesize.js --file=./dist/index.min.js --maxGzip=20",
|
|
"flow-check": "flow check",
|
|
"compile": "tsc",
|
|
"bundle": "rollup -c && rollup -c rollup.browser.config.js && rollup -c rollup.test-utils.config.js && cp ./index.js.flow ./lib",
|
|
"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*'"
|
|
},
|
|
"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": {
|
|
".*": "<rootDir>/preprocessor.js"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"json"
|
|
],
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/examples",
|
|
"<rootDir>/test/flow.js"
|
|
],
|
|
"testRegex": "(/test/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
"collectCoverage": true
|
|
},
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist",
|
|
"lib",
|
|
"src",
|
|
"exports.d.ts",
|
|
"CHANGELOG.md",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"peerDependencies": {
|
|
"react": "0.14.x || 15.* || ^15.0.0 || ^16.0.0-alpha",
|
|
"redux": "^2.0.0 || ^3.0.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"react-dom": "0.14.x || 15.* || ^15.0.0 || ^16.0.0-alpha"
|
|
},
|
|
"devDependencies": {
|
|
"@types/enzyme": "^2.4.32",
|
|
"@types/graphql": "^0.9.0",
|
|
"@types/invariant": "^2.2.27",
|
|
"@types/isomorphic-fetch": "0.0.34",
|
|
"@types/jest": "^19.2.0",
|
|
"@types/lodash": "^4.14.36",
|
|
"@types/node": "^7.0.5",
|
|
"@types/object-assign": "^4.0.28",
|
|
"@types/react": "^15.0.12",
|
|
"@types/react-addons-test-utils": "^0.14.14",
|
|
"@types/react-dom": "^15.5.0",
|
|
"@types/react-redux": "^4.4.31",
|
|
"@types/redux-form": "^6.3.2",
|
|
"@types/redux-immutable": "^3.0.30",
|
|
"@types/sinon": "^2.1.1",
|
|
"babel-jest": "^19.0.0",
|
|
"babel-preset-react-native": "^1.9.0",
|
|
"browserify": "^14.1.0",
|
|
"cheerio": "^0.22.0",
|
|
"colors": "^1.1.2",
|
|
"enzyme": "^2.2.0",
|
|
"enzyme-to-json": "^1.1.5",
|
|
"flow-bin": "^0.46.0",
|
|
"graphql": "^0.9.1",
|
|
"immutable": "^3.8.1",
|
|
"isomorphic-fetch": "^2.2.1",
|
|
"jest": "^19.0.0",
|
|
"jest-react-native": "^18.0.0",
|
|
"jsdom": "^11.0.0",
|
|
"lodash": "^4.16.6",
|
|
"minimist": "^1.2.0",
|
|
"mobx": "^3.1.0",
|
|
"mobx-react": "^4.1.0",
|
|
"pretty-bytes": "^4.0.2",
|
|
"react": "^15.5.4",
|
|
"react-addons-test-utils": "^15.5.1",
|
|
"react-dom": "^15.5.4",
|
|
"react-native": "^0.42.3",
|
|
"react-redux": "^5.0.3",
|
|
"react-test-renderer": "^15.5.4",
|
|
"recompose": "^0.23.0",
|
|
"redux": "^3.5.2",
|
|
"redux-form": "^6.0.5",
|
|
"redux-immutable": "^4.0.0",
|
|
"redux-loop": "^2.2.2",
|
|
"rollup": "^0.41.6",
|
|
"source-map-support": "^0.4.0",
|
|
"swapi-graphql": "0.0.6",
|
|
"travis-weigh-in": "^1.0.2",
|
|
"tslint": "^5.1.0",
|
|
"typescript": "^2.3.0",
|
|
"typescript-require": "^0.2.9-1",
|
|
"typings": "^2.1.0",
|
|
"uglify-js": "^3.0.13"
|
|
},
|
|
"dependencies": {
|
|
"apollo-client": "^1.4.0",
|
|
"graphql-anywhere": "^3.0.0",
|
|
"graphql-tag": "^2.0.0",
|
|
"hoist-non-react-statics": "^1.2.0",
|
|
"invariant": "^2.2.1",
|
|
"lodash.flatten": "^4.2.0",
|
|
"lodash.isequal": "^4.1.1",
|
|
"lodash.isobject": "^3.0.2",
|
|
"lodash.pick": "^4.4.0",
|
|
"object-assign": "^4.0.1",
|
|
"prop-types": "^15.5.8"
|
|
}
|
|
}
|