UNPKG

react-apollo-hooks

Version:

Use [Apollo Client](https://github.com/apollographql/apollo-client) as React [hooks](https://reactjs.org/docs/hooks-intro.html).

115 lines (114 loc) 3.13 kB
{ "name": "react-apollo-hooks", "version": "0.4.3", "description": "", "sideEffects": false, "main": "lib/index.js", "module": "es/index.js", "typings": "lib/index.d.ts", "files": [ "es", "lib" ], "scripts": { "build:cjs": "rimraf lib && babel src --extensions '.ts' --extensions '.tsx' --ignore '**/__tests__' --ignore '**/__testutils__' -d lib", "build:es": "rimraf es && cross-env ES_MODULES=true babel src --extensions '.ts' --extensions '.tsx' --ignore '**/__tests__' --ignore '**/__testutils__' -d es", "build:typings": "tsc -p tsconfig.typings.json", "build": "npm run build:cjs && npm run build:es && npm run build:typings", "typings-check": "tsc --noEmit", "format-check": "prettier --list-different \"**/*.{js,ts,tsx}\"", "format": "prettier --write \"**/*.{js,ts,tsx}\"", "lint": "tslint --project . \"src/**/*.{ts,tsx}\"", "prepublishOnly": "npm run build", "test": "jest" }, "author": "Daniel Trojanowski", "license": "MIT", "homepage": "https://github.com/trojanowski/react-apollo-hooks#readme", "repository": { "type": "git", "url": "https://github.com/trojanowski/react-apollo-hooks.git" }, "jest": { "setupTestFrameworkScriptFile": "./src/__testutils__/setupTests.ts", "transform": { "^.+\\.(ts|tsx)$": "babel-jest" }, "testMatch": [ "**/__tests__/**/*-test.ts?(x)" ], "testPathIgnorePatterns": [ "/<rootDir>/es/", "/<rootDir>/lib/", "/node_modules/" ], "moduleFileExtensions": [ "ts", "tsx", "js", "json", "jsx", "node" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*.js": [ "prettier --write", "git add" ], "**/*.{ts,tsx}": [ "tslint --fix --project .", "prettier --write", "git add" ] }, "peerDependencies": { "apollo-client": "*", "graphql": "*", "react": "^16.8.0" }, "dependencies": { "lodash": "^4.17.11" }, "devDependencies": { "@babel/cli": "^7.1.2", "@babel/core": "^7.1.5", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.1.0", "@types/graphql": "^14.0.3", "@types/jest": "^23.3.10", "@types/lodash": "^4.14.119", "@types/react": "^16.8.2", "@types/react-dom": "^16.8.0", "apollo-cache-inmemory": "^1.3.11", "apollo-client": "^2.4.7", "apollo-link": "^1.2.4", "apollo-link-mock": "^1.0.1", "babel-core": "^7.0.0-bridge.0", "babel-jest": "^23.6.0", "cross-env": "^5.2.0", "graphql": "^14.0.2", "graphql-tag": "^2.10.0", "husky": "^1.2.0", "jest": "^23.6.0", "jest-dom": "^2.1.1", "jest-react-profiler": "^0.1.3", "lint-staged": "^8.1.0", "prettier": "^1.15.2", "react": "16.8.1", "react-dom": "16.8.1", "react-testing-library": "^5.5.3", "rimraf": "^2.6.2", "standard-version": "^4.4.0", "tslint": "^5.12.0", "tslint-config-prettier": "^1.17.0", "tslint-react": "^3.6.0", "typescript": "^3.2.2" } }