|
19 | 19 | "build": "npm run clean && babel src --out-dir es && flow-copy-source -v src/ es && BABEL_ENV=es5 babel src --out-dir . && flow-copy-source -v src/ .", |
20 | 20 | "test": "NODE_ENV=production BABEL_ENV=es5 mocha $npm_package_config_mocha && NODE_ENV=production BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha", |
21 | 21 | "test:watch": "NODE_ENV=production BABEL_ENV=test mocha --watch $npm_package_config_mocha", |
| 22 | + "test:debug": "NODE_ENV=production BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha", |
22 | 23 | "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", |
23 | | - "commitmsg": "commitlint -e $GIT_PARAMS", |
24 | | - "precommit": "npm run lint && npm run prettier:check && flow", |
25 | | - "prepush": "npm test", |
26 | | - "prepublishOnly": "npm run clean && npm run lint && flow && npm test && npm run build", |
| 24 | + "prepublishOnly": "npm run clean && npm run prettier:check && flow && npm test && npm run build", |
27 | 25 | "open:coverage": "open coverage/lcov-report/index.html", |
28 | 26 | "semantic-release": "semantic-release", |
29 | 27 | "travis-deploy-once": "travis-deploy-once" |
30 | 28 | }, |
| 29 | + "husky": { |
| 30 | + "hooks": { |
| 31 | + "pre-commit": "lint-staged && flow", |
| 32 | + "commit-msg": "commitlint -e $GIT_PARAMS", |
| 33 | + "pre-push": "npm test" |
| 34 | + } |
| 35 | + }, |
| 36 | + "lint-staged": { |
| 37 | + "*.{js,json,css,md}": [ |
| 38 | + "prettier --write", |
| 39 | + "git add" |
| 40 | + ] |
| 41 | + }, |
31 | 42 | "config": { |
32 | | - "mocha": "-r babel-register ./test/**/*.js", |
| 43 | + "mocha": "-r @babel/register ./test/**/*.js", |
33 | 44 | "commitizen": { |
34 | 45 | "path": "cz-conventional-changelog" |
35 | 46 | } |
|
58 | 69 | }, |
59 | 70 | "homepage": "https://github.com/jedwards1211/es2015-library-skeleton#readme", |
60 | 71 | "devDependencies": { |
| 72 | + "@babel/cli": "^7.1.5", |
| 73 | + "@babel/core": "^7.1.6", |
| 74 | + "@babel/plugin-proposal-class-properties": "^7.1.0", |
| 75 | + "@babel/plugin-proposal-export-default-from": "^7.0.0", |
| 76 | + "@babel/plugin-proposal-export-namespace-from": "^7.0.0", |
| 77 | + "@babel/plugin-proposal-object-rest-spread": "^7.0.0", |
| 78 | + "@babel/plugin-syntax-dynamic-import": "^7.0.0", |
| 79 | + "@babel/plugin-transform-runtime": "^7.1.0", |
| 80 | + "@babel/preset-env": "^7.1.6", |
| 81 | + "@babel/preset-flow": "^7.0.0", |
| 82 | + "@babel/register": "^7.0.0", |
| 83 | + "@babel/runtime": "^7.1.5", |
61 | 84 | "@commitlint/cli": "^6.0.2", |
62 | 85 | "@commitlint/config-conventional": "^6.0.2", |
63 | 86 | "@jedwards1211/commitlint-config": "^1.0.0", |
64 | 87 | "@jedwards1211/eslint-config": "^2.0.0", |
65 | 88 | "@jedwards1211/eslint-config-flow": "^1.0.0", |
66 | | - "babel-cli": "^6.23.0", |
67 | | - "babel-core": "^6.23.1", |
68 | | - "babel-eslint": "^7.1.1", |
69 | | - "babel-plugin-istanbul": "^4.0.0", |
70 | | - "babel-plugin-syntax-dynamic-import": "^6.18.0", |
71 | | - "babel-plugin-transform-class-properties": "^6.24.1", |
72 | | - "babel-plugin-transform-export-extensions": "^6.22.0", |
73 | | - "babel-plugin-transform-object-rest-spread": "^6.26.0", |
74 | | - "babel-plugin-transform-runtime": "^6.23.0", |
75 | | - "babel-preset-env": "^1.7.0", |
76 | | - "babel-preset-flow": "^6.23.0", |
77 | | - "babel-preset-stage-1": "^6.24.1", |
78 | | - "babel-register": "^6.23.0", |
79 | | - "babel-runtime": "^6.23.0", |
80 | | - "chai": "^4.1.2", |
81 | | - "codecov": "^3.0.0", |
82 | | - "copy": "^0.3.0", |
83 | | - "eslint": "^3.15.0", |
84 | | - "eslint-plugin-flowtype": "^2.30.0", |
85 | | - "eslint-watch": "^3.0.0", |
86 | | - "flow-bin": "^0.85.0", |
87 | | - "flow-copy-source": "^1.2.1", |
| 89 | + "babel-eslint": "^10.0.1", |
| 90 | + "babel-plugin-istanbul": "^5.1.0", |
| 91 | + "chai": "^4.2.0", |
| 92 | + "codecov": "^3.1.0", |
| 93 | + "copy": "^0.3.2", |
| 94 | + "eslint": "^5.9.0", |
| 95 | + "eslint-plugin-flowtype": "^3.2.0", |
| 96 | + "eslint-watch": "^4.0.2", |
| 97 | + "flow-bin": "^0.86.0", |
| 98 | + "flow-copy-source": "^2.0.2", |
88 | 99 | "flow-watch": "^1.1.0", |
89 | 100 | "husky": "^0.14.3", |
90 | 101 | "istanbul": "^0.4.5", |
91 | | - "mocha": "^4.1.0", |
92 | | - "nyc": "^11.4.1", |
93 | | - "prettier": "^1.15.1", |
| 102 | + "lint-staged": "^8.0.4", |
| 103 | + "mocha": "^5.2.0", |
| 104 | + "nyc": "^13.1.0", |
| 105 | + "prettier": "^1.15.2", |
94 | 106 | "prettier-eslint": "^8.8.2", |
95 | 107 | "rimraf": "^2.6.0", |
96 | 108 | "semantic-release": "^15.1.4", |
97 | 109 | "travis-deploy-once": "^4.3.1" |
| 110 | + }, |
| 111 | + "dependencies": { |
| 112 | + "eslint-config-prettier": "^3.3.0" |
98 | 113 | } |
99 | 114 | } |
0 commit comments