UNPKG

react-apollo-graphql

Version:

Get rid of decorators and use Apollo GraphQL queries and mutations in the simple and readable way.

132 lines (131 loc) 3.93 kB
{ "name": "react-apollo-graphql", "version": "0.5.0", "description": "Get rid of decorators and use Apollo GraphQL queries and mutations in the simple and readable way.", "keywords": [ "react", "apollo", "apollo-client", "graphql" ], "main": "lib/index.js", "module": "dist/react-apollo-graphql.es.js", "jsnext:main": "dist/react-apollo-graphql.es.js", "repository": "https://github.com/michalkvasnicak/react-apollo-graphql", "author": "Michal Kvasnicak", "license": "MIT", "peerDependencies": { "apollo-client": "1.* || ^1.0.0", "prop-types": "15.* || ^15.0.0 || ^16.0.0-alpha", "react": "15.* || ^15.0.0 || ^16.0.0-alpha" }, "devDependencies": { "apollo-client": "^1.2.2", "apollo-test-utils": "^0.3.0", "babel-cli": "^6.24.1", "babel-eslint": "^7.2.3", "babel-jest": "^20.0.3", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-external-helpers": "^6.22.0", "babel-plugin-flow-react-proptypes": "^2.2.1", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-flow-strip-types": "^6.22.0", "babel-plugin-transform-object-rest-spread": "^6.23.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.5", "babel-plugin-transform-regenerator": "^6.24.1", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-env": "^1.5.0", "babel-preset-jest": "^20.0.3", "babel-preset-latest": "^6.24.1", "babel-preset-react": "^6.24.1", "enzyme": "^2.8.2", "eslint": "^3.19.0", "eslint-config-prettier": "^2.1.1", "eslint-plugin-flowtype": "^2.33.0", "eslint-plugin-prettier": "^2.1.1", "flow-bin": "^0.46.0", "flow-copy-source": "^1.1.0", "graphql": "^0.9.6", "graphql-tag": "^2.1.0", "jest": "^20.0.3", "lint-staged": "^3.4.2", "pre-commit": "^1.2.2", "prettier": "^1.3.1", "prop-types": "^15.5.10", "react": "^15.5.4", "react-addons-test-utils": "^15.5.1", "react-dom": "^15.5.4", "react-test-renderer": "^15.5.4", "rimraf": "^2.6.1", "rollup": "^0.41.6", "rollup-plugin-babel": "^2.7.1", "rollup-plugin-commonjs": "^8.0.2", "rollup-plugin-node-resolve": "^3.0.0", "rollup-plugin-uglify": "^2.0.1", "rollup-plugin-visualizer": "^0.2.1" }, "eslintConfig": { "env": { "browser": true, "jest": true, "node": true }, "extends": [ "plugin:flowtype/recommended", "prettier" ], "plugins": [ "flowtype", "prettier" ], "rules": { "flowtype/generic-spacing": "off", "prettier/prettier": [ "error", { "trailingComma": "all", "singleQuote": true, "printWidth": 100, "tabWidth": 2 } ] } }, "jest": { "collectCoverageFrom": [ "src/**/*.{js,jsx}" ], "testPathIgnorePatterns": [ "<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]", "flow\\.test\\.(js|jsx)$" ], "testEnvironment": "jsdom", "testURL": "http://localhost", "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$" ], "transform": { "^.+\\.js$": "<rootDir>/node_modules/babel-jest" } }, "lint-staged": { "src/**/*.js": [ "eslint --fix", "git add" ] }, "pre-commit": "lint-staged", "scripts": { "build": "npm run build:lib && npm run build:dist && npm run build:flow", "prebuild:dist": "rimraf dist/*", "build:dist": "rollup -c && rollup -c --environment PRODUCTION", "prebuild:lib": "rimraf lib/*", "build:lib": "BABEL_ENV=production babel --ignore '*.test.js' --out-dir lib src", "build:flow": "flow-copy-source -v -i *.test.js src lib", "lint-staged": "lint-staged", "prepublishOnly": "npm test && npm run lint && npm run build", "flow": "flow check", "lint": "eslint src", "test": "jest" } }