devlato/react-shortcut

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "react-shortcut",
  "version": "2.0.9",
  "description": "Convenient React component that detects if the given key combination is pressed, and triggers a callback",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "homepage": "https://github.com/devlato/react-shortcut",
  "bugs": {
    "url": "https://github.com/devlato/react-shortcut/issues"
  },
  "scripts": {
    "format": "prettier --write src .jest",
    "lint": "eslint --ext .ts,.tsx,.js,.jsx,.json -c .eslintrc.js .",
    "test": "cross-env NODE_ENV=test jest",
    "test:ci": "npm run clean:coverage && cross-env NODE_ENV=test jest --coverage",
    "clean:build": "rimraf dist",
    "clean:coverage": "rimraf coverage",
    "clean:storybook": "rimraf docs",
    "clean": "npm run clean:build & npm run clean:coverage & npm run clean:storybook && wait",
    "build:code": "cross-env NODE_ENV=production rollup -c rollup.config.js",
    "build": "npm run clean:build && npm run build:code",
    "storybook": "cross-env NODE_ENV=development start-storybook -p 6006 -c .storybook",
    "storybook:compile": "cross-env NODE_ENV=production build-storybook -c .storybook -o docs",
    "storybook:build": "npm run clean:storybook && npm run storybook:compile",
    "pre-push": "npm run lint && npm run test:coverage",
    "prepublish": "npm run clean && npm run build"
  },
  "lint-staged": {
    "src/**/*.{ts,tsx,js,jsx,json}": ["eslint -c ./.eslintrc.js --fix", "jest —-bail --color --findRelatedTests"],
    "./*.{ts,tsx,js,jsx,json}": ["eslint -c ./.eslintrc.js --fix", "jest —-bail --color --findRelatedTests"]
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "pre-push": "npm run lint && npm run test && npm run build"
    }
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/devlato/react-shortcut.git"
  },
  "keywords": ["react", "component", "library", "typescript", "hotkeys", "hotkey", "shortcut", "keyboard"],
  "author": "devlato <npm@devlato.com> (https://devlato.com/)",
  "license": "MIT",
  "files": ["package.json", "README.md", "LICENSE", "dist"],
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "@babel/preset-env": "^7.9.0",
    "@babel/preset-react": "^7.9.4",
    "@rollup/plugin-node-resolve": "^7.1.1",
    "@storybook/addon-actions": "^5.3.17",
    "@storybook/addon-knobs": "^5.3.17",
    "@storybook/addons": "^5.3.17",
    "@storybook/cli": "^5.3.17",
    "@storybook/preset-typescript": "^3.0.0",
    "@storybook/react": "^5.3.17",
    "@types/enzyme": "^3.10.4",
    "@types/jest": "^24.0.23",
    "@types/mousetrap": "^1.6.3",
    "@types/node": "^12.12.17",
    "@types/prettier": "^1.19.1",
    "@types/react": "^16.9.16",
    "@types/react-dom": "^16.9.4",
    "@typescript-eslint/eslint-plugin": "^2.12.0",
    "@typescript-eslint/parser": "^2.12.0",
    "babel-loader": "^8.1.0",
    "brotli": "^1.3.2",
    "coveralls": "^3.0.11",
    "cross-env": "^7.0.2",
    "enzyme": "^3.11.0",
    "enzyme-adapter-react-16": "^1.15.2",
    "enzyme-to-json": "^3.4.4",
    "eslint": "^6.8.0",
    "eslint-config-prettier": "^6.10.1",
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-react": "^7.19.0",
    "husky": "^4.2.3",
    "jest": "^25.2.3",
    "lint-staged": "^10.0.9",
    "prettier": "^2.0.2",
    "react": "*",
    "react-dom": "*",
    "rimraf": "^3.0.2",
    "rollup": "^2.2.0",
    "rollup-plugin-commonjs": "^10.1.0",
    "rollup-plugin-gzip": "^2.3.0",
    "rollup-plugin-terser": "^5.3.0",
    "rollup-plugin-typescript2": "^0.27.0",
    "ts-jest": "^25.2.1",
    "ts-loader": "^6.2.2",
    "ts-node": "^8.8.1",
    "typescript": "^3.8.3"
  },
  "peerDependencies": {
    "react": "*",
    "react-dom": "*"
  },
  "engines": {
    "node": ">= 8",
    "npm": ">= 4"
  },
  "dependencies": {
    "mousetrap": "^1.6.5"
  }
}