Skip to content

Commit e1e61c6

Browse files
committed
chore: project maintenance
1 parent 56346a9 commit e1e61c6

File tree

4 files changed

+211
-1
lines changed

4 files changed

+211
-1
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpx --no-install lint-staged

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/vuejs/create-vue)
44

55
An easy way to start a Vue project
6+
7+
## Usage
8+
9+
```sh
10+
npm init vue@next
11+
```

package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"node": "^12.13.0 || ^14.0.0 || >= 16.0.0"
1717
},
1818
"scripts": {
19+
"prepare": "husky install",
1920
"format": "prettier --write .",
2021
"test": "node test.js",
2122
"prepublishOnly": "node snapshot.js"
@@ -26,7 +27,7 @@
2627
},
2728
"keywords": [],
2829
"author": "Haoqun Jiang <[email protected]>",
29-
"license": "ISC",
30+
"license": "MIT",
3031
"bugs": {
3132
"url": "https://github.com/vuejs/create-vue/issues"
3233
},
@@ -37,6 +38,13 @@
3738
"prompts": "^2.4.1"
3839
},
3940
"devDependencies": {
41+
"husky": "^7.0.0",
42+
"lint-staged": "^11.1.2",
4043
"prettier": "^2.3.2"
44+
},
45+
"lint-staged": {
46+
"*.{js,ts,vue,json}": [
47+
"prettier --write"
48+
]
4149
}
4250
}

0 commit comments

Comments
 (0)