-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
78 lines (78 loc) · 1.97 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "@liyongning/ts-cli",
"version": "1.0.3",
"description": "",
"main": "./lib/index.js",
"bin": {
"ts-cli": "./bin/ts-cli.js"
},
"scripts": {
"dev:comment": "启动开发环境",
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
"eslint:comment": "使用 ESLint 检查并自动修复 src 目录下所有扩展名为 .ts 的文件",
"eslint": "eslint --fix src --ext .ts --max-warnings=0",
"prettier:comment": "自动格式化 src 目录下的所有 .ts 文件",
"prettier": "prettier --write \"src/**/*.ts\"",
"commit:comment": "引导设置规范化的提交信息",
"commit": "cz",
"build:comment": "构建",
"build": "npm run eslint && npm run prettier && rm -rf lib && tsc --build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.ts": [
"npm run eslint",
"npm run prettier"
]
},
"keywords": [
"typescript",
"cli",
"typescript 脚手架",
"ts 脚手架",
"ts-cli",
"脚手架"
],
"author": "李永宁",
"files": [
"package.json",
"README.md",
"lib"
],
"repository": {
"type": "git",
"url": "https://github.com/liyongning/ts-cli.git"
},
"license": "ISC",
"dependencies": {
"chalk": "^4.1.0",
"clear-console": "^1.1.0",
"commander": "^6.2.0",
"inquirer": "^7.3.3",
"shelljs": "^0.8.4"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/node": "^14.14.10",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.14.0",
"husky": "^4.3.0",
"lint-staged": "^10.5.2",
"prettier": "^2.2.1",
"ts-node-dev": "^1.0.0",
"typescript": "^4.1.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}