|
13 | 13 | "version": "4.2.1" |
14 | 14 | }, |
15 | 15 | "dependencies": { |
16 | | - "cheerio": "^1.0.0-rc.3", |
| 16 | + "cheerio": "1.0.0-rc.10", |
17 | 17 | "hexo": "^4.2.1", |
18 | | - "hexo-auto-category": "^0.2.0", |
| 18 | + "hexo-auto-category": "^0.2.1", |
19 | 19 | "hexo-deployer-git": "^2.1.0", |
20 | 20 | "hexo-generator-archive": "^1.0.0", |
21 | 21 | "hexo-generator-category": "^1.0.0", |
22 | 22 | "hexo-generator-feed": "^2.2.0", |
23 | 23 | "hexo-generator-index": "^1.0.0", |
24 | 24 | "hexo-generator-slidehtml": "0.0.62", |
25 | 25 | "hexo-generator-tag": "^1.0.0", |
26 | | - "hexo-migrator-web": "^1.0.3", |
| 26 | + "hexo-migrator-web": "^1.0.4", |
27 | 27 | "hexo-permalink-pinyin": "^1.1.0", |
28 | 28 | "hexo-prism-plugin": "^2.3.0", |
29 | 29 | "hexo-reference": "^1.0.4", |
|
34 | 34 | "icalendar": "^0.7.1", |
35 | 35 | "object-assign": "^4.1.1" |
36 | 36 | }, |
| 37 | + "lint-staged": { |
| 38 | + "*.{html,md,css,less,js,json,yml,yaml}": "prettier --write" |
| 39 | + }, |
37 | 40 | "scripts": { |
38 | | - "format": "prettier --write \"{,!(node_modules|.git|scaffolds|themes|public|.deploy_git)/**/}*.{html,md,css,less,js,json,yml,yaml}\"", |
| 41 | + "prepare": "husky install", |
39 | 42 | "start": "hexo clean && hexo server", |
40 | | - "deploy": "npm run format && hexo clean && hexo deploy", |
41 | | - "build": "npm run format && hexo clean && hexo generate" |
42 | | - }, |
43 | | - "husky": { |
44 | | - "hooks": { |
45 | | - "pre-commit": "npm run build && git add ." |
46 | | - } |
| 43 | + "deploy": "hexo clean && hexo deploy", |
| 44 | + "build": "hexo clean && hexo generate" |
47 | 45 | }, |
48 | 46 | "devDependencies": { |
49 | | - "husky": "^4.3.0", |
50 | | - "prettier": "^2.1.2" |
| 47 | + "husky": "^7.0.4", |
| 48 | + "prettier": "^2.5.1" |
51 | 49 | }, |
52 | 50 | "prettier": { |
53 | 51 | "trailingComma": "none", |
|
0 commit comments