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