UNPKG

use-shopify

Version:

React hooks to work with Shopify's Storefront API

168 lines (167 loc) 5.87 kB
{ "name": "use-shopify", "version": "0.8.3", "description": "React hooks to work with Shopify's Storefront API", "repository": "https://github.com/good-idea/use-shopify", "main": "lib/index.js", "module": "lib/index.es.js", "types": "lib/index.d.ts", "files": [ "lib" ], "license": "MIT", "keywords": [ "shopify", "react", "react hook", "graphql" ], "scripts": { "cm": "git-cz", "describe": "npm-scripts-info", "clean": "trash lib test", "build": "yarn clean && rollup -c", "watch": "yarn clean && rollup -cw", "fix": "run-s fix:*", "fix:prettier": "prettier \"src/**/*.ts\" --write", "fix:tslint": "tslint --fix --project .", "generate-types": "graphql-codegen && prettier ./src/types/**/* --write", "linky": "yalc publish", "linky:watch": "nodemon -w ./lib --delay 250ms -x yalc publish --push --changed", "test": "run-s test:lint test:compile test:jest build", "test:lint": "eslint ./src/**/*.{ts,tsx} && prettier \"src/**/*.{ts,tsx}\" --list-different", "test:compile": "tsc --noEmit", "test:jest": "jest", "test:coverage": "jest --collectCoverage", "test:watch": "jest --watch", "test:coverage:open": "yarn test:unit && opn coverage/lcov-report/index.html", "test:coverage:send": "codecov", "doc": "run-s doc:html && opn build/docs/index.html", "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs", "doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json", "doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs", "reset": "git clean -dfx && git reset --hard && npm i", "prepare-release": "run-s all version doc:publish", "release": "semantic-release --branches main" }, "scripts-info": { "info": "Display information about the package scripts", "build": "Clean and rebuild the project", "fix": "Try to automatically fix any linting problems", "test": "Lint and unit test the project", "watch": "Watch and rebuild the project on save, then rerun relevant tests", "cov": "Rebuild, run tests, then create and open the coverage report", "doc": "Generate HTML API documentation and open it in a browser", "doc:json": "Generate API documentation in typedoc JSON format", "version": "Bump package.json version, update CHANGELOG.md, tag release", "reset": "Delete all untracked files and reset the repo to the last commit", "prepare-release": "One-step: clean, build, test, publish docs, and prep a release" }, "engines": { "node": ">=8.9" }, "dependencies": { "@good-idea/unwind-edges": "^1.4.0", "@thi.ng/memoize": "^2.0.14", "graphql-tag": "^2.10.3", "js-cookie": "^2.2.1" }, "devDependencies": { "@commitlint/cli": "^9.0.1", "@commitlint/config-conventional": "^9.0.1", "@commitlint/prompt": "^9.0.1", "@graphql-codegen/cli": "^1.15.4", "@graphql-codegen/fragment-matcher": "^1.15.4", "@graphql-codegen/introspection": "^1.15.4", "@graphql-codegen/typescript": "^1.15.4", "@graphql-codegen/typescript-operations": "^1.15.4", "@semantic-release/changelog": "^5.0.1", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/exec": "^5.0.0", "@semantic-release/git": "^9.0.0", "@semantic-release/github": "^7.0.7", "@semantic-release/npm": "^7.0.5", "@semantic-release/release-notes-generator": "^9.0.1", "@testing-library/jest-dom": "^5.11.0", "@testing-library/react": "^10.4.3", "@testing-library/react-hooks": "^3.3.0", "@types/eslint": "^7.2.0", "@types/eslint-plugin-prettier": "^3.1.0", "@types/gh-pages": "^3.0.0", "@types/graphql": "^14.5.0", "@types/jest": "^26.0.3", "@types/js-cookie": "^2.2.6", "@types/lodash": "^4.14.157", "@types/nodemon": "^1.19.0", "@types/prettier": "^2.0.1", "@types/react": "^16.9.41", "@types/react-dom": "^16.9.8", "@types/react-test-renderer": "^16.9.2", "@types/rimraf": "^3.0.0", "@types/semantic-release": "^17.0.1", "@types/standard-version": "^7.0.0", "@types/testing-library__jest-dom": "^5.9.1", "@types/testing-library__react": "^10.2.0", "@types/testing-library__react-hooks": "^3.2.0", "@typescript-eslint/eslint-plugin": "^3.4.0", "@typescript-eslint/parser": "^3.4.0", "codecov": "^3.7.0", "commitizen": "^4.1.2", "cz-conventional-changelog": "^3.2.0", "eslint": "^7.3.1", "eslint-config-airbnb": "^18.2.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.0", "gh-pages": "^3.1.0", "graphql": "^15.1.0", "husky": "^4.2.5", "jest": "^26.1.0", "jest-fetch-mock": "^3.0.3", "markdown-toc": "^1.2.0", "nodemon": "^2.0.4", "npm-run-all": "^4.1.5", "opn-cli": "^5.0.0", "prettier": "^2.0.5", "pretty-quick": "^2.0.1", "react": "16.13.1", "react-dom": "16.13.1", "react-test-renderer": "^16.13.1", "rimraf": "^3.0.2", "rollup": "^2.18.1", "rollup-plugin-typescript2": "^0.27.1", "semantic-release": "^17.1.1", "standard-version": "^8.0.0", "trash-cli": "^3.0.0", "ts-jest": "^26.1.1", "tslib": "^2.0.0", "typedoc": "^0.17.7", "typescript": "^3.9.5", "utility-types": "^3.10.0", "yalc": "^1.0.0-pre.36" }, "peerDependencies": { "graphql": "^15.1.0", "react": "^16.13.1", "react-dom": "^16.13.1" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-commit": "pretty-quick --staged" } }, "nyc": { "exclude": [ "**/*.spec.js" ] }, "resolutions": { "graphql": "^15.1.0" } }