|
59 | 59 | }, |
60 | 60 | "license": "BSD-3-Clause", |
61 | 61 | "scripts": { |
62 | | - "test": "npm run lint && npm run build && node test/run-tests.js", |
63 | | - "build": "webpack --color", |
64 | 62 | "lint": "eslint *.js lib/ test/", |
| 63 | + "prebuild": "npm run lint", |
| 64 | + "build": "webpack --color", |
| 65 | + "pretest": "npm run build", |
| 66 | + "test": "node test/run-tests.js", |
| 67 | + "precoverage": "npm run build", |
| 68 | + "coverage": "nyc node test/run-tests.js", |
| 69 | + "setup": "mkdir -p coverage && cp -n .waiting.html coverage/index.html || true", |
| 70 | + "dev:live": "live-server --port=4103 --ignorePattern='(js|css|png)$' coverage", |
| 71 | + "dev:watch": "watch 'npm run coverage' lib/ test/", |
| 72 | + "predev": "npm run setup", |
| 73 | + "dev": "npm-run-all -p --silent dev:*", |
| 74 | + "clean": "rm -rf coverage .nyc_output", |
65 | 75 | "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md" |
66 | 76 | }, |
67 | 77 | "devDependencies": { |
68 | 78 | "doctoc": "^0.15.0", |
69 | | - "webpack": "^3.10", |
70 | | - "eslint": "^4.19.1" |
| 79 | + "eslint": "^4.19.1", |
| 80 | + "live-server": "^1.2.0", |
| 81 | + "npm-run-all": "^4.1.2", |
| 82 | + "nyc": "^11.7.1", |
| 83 | + "watch": "^1.0.2", |
| 84 | + "webpack": "^3.10" |
| 85 | + }, |
| 86 | + "nyc": { |
| 87 | + "reporter": "html" |
71 | 88 | }, |
72 | 89 | "typings": "source-map" |
73 | 90 | } |
0 commit comments