|
24 | 24 | "node": ">=6.9" |
25 | 25 | }, |
26 | 26 | "scripts": { |
27 | | - "start": "npm run init:generated && npm run fetch && node ./antwar.bootstrap.js develop", |
| 27 | + "start": "run-s -n init:generated fetch start-only", |
28 | 28 | "start-only": "node ./antwar.bootstrap.js develop", |
29 | 29 | "build": "npm run init:generated && npm run fetch && rm -rf build/ && node ./antwar.bootstrap.js build && npm run sitemap && echo webpack.js.org > build/CNAME", |
30 | 30 | "build-test": "npm run build && http-server build/", |
31 | 31 | "deploy": "gh-pages -d build", |
32 | 32 | "fetch": "sh src/scripts/fetch.sh", |
33 | 33 | "init:generated": "mkdirp ./generated/loaders && mkdirp ./generated/plugins ", |
34 | 34 | "lint": "run-s lint:*", |
35 | | - "lint:js": "eslint . --ext .js --ext .jsx", |
| 35 | + "lint:js": "eslint . --ext .js,.jsx,.md", |
36 | 36 | "lint:markdown": "markdownlint --config ./.markdownlint.json *.md ./src/content/**/*.md", |
37 | 37 | "lint:social": "alex . -q", |
38 | 38 | "lint:prose": "cp .proselintrc ~/ && proselint src/content", |
39 | 39 | "test": "npm run lint", |
40 | 40 | "sitemap": "cd build && sitemap-static --prefix=https://webpack.js.org/ > sitemap.xml" |
41 | 41 | }, |
| 42 | + "husky": { |
| 43 | + "hooks": { |
| 44 | + "pre-commit": "npm test" |
| 45 | + } |
| 46 | + }, |
42 | 47 | "devDependencies": { |
43 | 48 | "alex": "^4.1.0", |
44 | 49 | "antwar": "^0.28.3", |
|
56 | 61 | "copy-webpack-plugin": "^4.4.2", |
57 | 62 | "css-loader": "^0.28.10", |
58 | 63 | "duplexer": "^0.1.1", |
59 | | - "eslint": "4.5.0", |
| 64 | + "eslint": "4.19.1", |
60 | 65 | "eslint-loader": "^2.0.0", |
61 | | - "eslint-plugin-markdown": "^1.0.0-beta.7", |
| 66 | + "eslint-plugin-markdown": "git://github.com/byzyk/eslint-plugin-markdown.git#5927ccb78aff8a5464663730800503c6de3704e1", |
62 | 67 | "file-loader": "^1.1.11", |
63 | 68 | "fontgen-loader": "git://github.com/EugeneHlushko/fontgen-loader.git#a26a73843900ca4b518853952b1fc3c816103512", |
64 | 69 | "front-matter": "^2.2.0", |
65 | 70 | "gh-pages": "^1.0.0", |
66 | 71 | "github": "^10.0.0", |
67 | 72 | "html-webpack-plugin": "^3.1.0", |
68 | 73 | "http-server": "^0.10.0", |
| 74 | + "husky": "^1.0.0-rc.8", |
69 | 75 | "hyperlink": "^3.0.1", |
70 | 76 | "loader-utils": "^1.1.0", |
71 | 77 | "lodash": "^4.17.4", |
|
0 commit comments