|
5 | 5 | "main": "dist/index.js", |
6 | 6 | "scripts": { |
7 | 7 | "commit": "git-cz", |
8 | | - "prebuild": "npm run lint && npm run clean", |
9 | | - "clean": "rimraf dist && mkdir dist", |
10 | | - "cover": "nyc --reporter lcov --reporter text npm t", |
11 | | - "check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100", |
| 8 | + "prebuild": "rimraf dist", |
12 | 9 | "report-coverage": "cat ./coverage/lcov.info | codecov", |
13 | 10 | "build": "babel src/ -d dist/", |
14 | | - "test": "ava --require babel-register", |
15 | | - "test:watch": "nodemon --exec npm t", |
| 11 | + "test": "cross-env NODE_ENV=test nyc ava", |
| 12 | + "test:watch": "ava --watch", |
16 | 13 | "lint": "eslint src/", |
| 14 | + "validate": "npm-run-all lint test build", |
17 | 15 | "semantic-release": "semantic-release pre && npm publish && semantic-release post" |
18 | 16 | }, |
19 | 17 | "repository": { |
|
31 | 29 | }, |
32 | 30 | "homepage": "https://github.com/eggheadio-github/stack-overflow-copy-paste#readme", |
33 | 31 | "devDependencies": { |
34 | | - "ava": "0.13.0", |
35 | | - "babel-cli": "6.6.5", |
36 | | - "babel-preset-es2015": "6.6.0", |
37 | | - "babel-preset-stage-2": "6.5.0", |
38 | | - "babel-register": "6.7.2", |
| 32 | + "ava": "0.15.2", |
| 33 | + "babel-cli": "6.11.4", |
| 34 | + "babel-plugin-istanbul": "1.0.3", |
| 35 | + "babel-preset-es2015": "6.9.0", |
| 36 | + "babel-preset-stage-2": "6.11.0", |
| 37 | + "babel-register": "6.11.6", |
39 | 38 | "codecov.io": "0.1.6", |
40 | | - "commitizen": "2.7.2", |
41 | | - "cz-conventional-changelog": "1.1.5", |
42 | | - "eslint": "2.4.0", |
43 | | - "eslint-config-kentcdodds": "6.0.0", |
44 | | - "ghooks": "1.0.3", |
45 | | - "nodemon": "1.9.1", |
46 | | - "nyc": "6.1.1", |
47 | | - "rimraf": "2.5.2", |
| 39 | + "commitizen": "2.8.2", |
| 40 | + "cross-env": "2.0.0", |
| 41 | + "cz-conventional-changelog": "1.1.6", |
| 42 | + "eslint": "3.2.0", |
| 43 | + "eslint-config-kentcdodds": "9.0.0", |
| 44 | + "ghooks": "1.3.2", |
| 45 | + "nodemon": "1.10.0", |
| 46 | + "npm-run-all": "2.3.0", |
| 47 | + "nyc": "7.1.0", |
| 48 | + "rimraf": "2.5.4", |
48 | 49 | "semantic-release": "4.3.5", |
49 | | - "validate-commit-msg": "2.4.0" |
| 50 | + "validate-commit-msg": "2.6.1" |
50 | 51 | }, |
51 | 52 | "config": { |
52 | 53 | "ghooks": { |
53 | 54 | "commit-msg": "validate-commit-msg", |
54 | | - "pre-commit": "npm run cover && npm run build" |
| 55 | + "pre-commit": "npm run validate" |
55 | 56 | }, |
56 | 57 | "commitizen": { |
57 | | - "path": "node_modules/cz-conventional-changelog" |
| 58 | + "path": "cz-conventional-changelog" |
58 | 59 | } |
59 | 60 | }, |
| 61 | + "nyc": { |
| 62 | + "all": true, |
| 63 | + "check-coverage": true, |
| 64 | + "branches": 100, |
| 65 | + "function": 100, |
| 66 | + "lines": 100, |
| 67 | + "statements": 100, |
| 68 | + "reporter": [ |
| 69 | + "text", |
| 70 | + "lcov" |
| 71 | + ], |
| 72 | + "include": [ |
| 73 | + "src" |
| 74 | + ], |
| 75 | + "sourceMap": false, |
| 76 | + "instrument": false, |
| 77 | + "require": [ |
| 78 | + "babel-register" |
| 79 | + ] |
| 80 | + }, |
60 | 81 | "babel": { |
61 | 82 | "presets": [ |
62 | 83 | "es2015", |
63 | 84 | "stage-2" |
64 | | - ] |
| 85 | + ], |
| 86 | + "env": { |
| 87 | + "test": { |
| 88 | + "plugins": [ |
| 89 | + "istanbul" |
| 90 | + ] |
| 91 | + } |
| 92 | + } |
65 | 93 | }, |
66 | 94 | "eslintConfig": { |
67 | | - "extends": "kentcdodds" |
| 95 | + "extends": [ |
| 96 | + "kentcdodds", |
| 97 | + "kentcdodds/ava" |
| 98 | + ] |
68 | 99 | } |
69 | 100 | } |
0 commit comments