package.json 1.64 KB
Newer Older
liang ce committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
{
  "name": "shallowequal",
  "version": "1.1.0",
  "description": "Like lodash isEqualWith but for shallow equal.",
  "main": "index.js",
  "scripts": {
    "lint": "eslint index.js test",
    "test": "mocha --require babel-register",
    "build:strip-flow":
      "flow-remove-types --pretty index.original.js > index.js",
    "build:gen-flow": "flow gen-flow-files index.original.js > index.js.flow",
    "build": "npm run build:strip-flow && npm run build:gen-flow",
    "prepublish":
      "npm run build && npm run pretty && npm run lint && npm run test",
    "travis": "npm run lint && npm run test",
    "pretty": "prettier --write --tab-width 2 'test/**/*.js' '*.{js,js.flow}'",
    "precommit": "lint-staged"
  },
  "lint-staged": {
    "*.{js,json,css,js.flow}": ["prettier --write", "git add"]
  },
  "author": {
    "name": "Alberto Leal",
    "email": "mailforalberto@gmail.com",
    "url": "github.com/dashed"
  },
  "repository": "dashed/shallowequal",
  "license": "MIT",
  "files": ["index.js", "index.js.flow", "index.original.js"],
  "keywords": [
    "shallowequal",
    "shallow",
    "equal",
    "isequal",
    "compare",
    "isequalwith"
  ],
  "eslintConfig": {
    "parser": "babel-eslint",
    "env": {
      "browser": true,
      "node": true,
      "mocha": true
    },
    "extends": ["eslint:recommended"]
  },
  "devDependencies": {
    "babel-eslint": "^8.0.0",
    "babel-preset-env": "^1.6.1",
    "babel-register": "^6.24.1",
    "chai": "^4.0.0",
    "eslint": "^4.7.1",
    "flow-bin": "^0.75.0",
    "flow-remove-types": "^1.2.3",
    "husky": "^0.14.3",
    "lint-staged": "^6.0.0",
    "mocha": "^5.0.0",
    "prettier": "^1.9.2"
  }
}