feat: add questions for init
Showing
3 changed files
with
22 additions
and
3 deletions
1 | { | 1 | { |
2 | "name": "@zb100/${repository}", | 2 | "name": "@zb100/${projectName}", |
3 | "version": "1.0.0", | 3 | "version": "1.0.0", |
4 | "description": "", | 4 | "description": "${description}", |
5 | "dependencies": {}, | 5 | "dependencies": {}, |
6 | "devDependencies": { | 6 | "devDependencies": { |
7 | "@commitlint/cli": "^8.2.0", | 7 | "@commitlint/cli": "^8.2.0", |
... | @@ -32,7 +32,7 @@ | ... | @@ -32,7 +32,7 @@ |
32 | }, | 32 | }, |
33 | "repository": { | 33 | "repository": { |
34 | "type": "git", | 34 | "type": "git", |
35 | "url": "ssh://git@gitlab.zb100.com:10022/mui/${repository}.git" | 35 | "url": "ssh://git@gitlab.zb100.com:10022/mui/${repo}.git" |
36 | }, | 36 | }, |
37 | "author": "${author}", | 37 | "author": "${author}", |
38 | "license": "ISC", | 38 | "license": "ISC", | ... | ... |
index.js
0 → 100644
1 | module.exports = { | ||
2 | projectName: { | ||
3 | desc: '请输入工程名称', | ||
4 | default: 'my-awesome-project' | ||
5 | }, | ||
6 | description: { | ||
7 | desc: '请输入工程描述', | ||
8 | default: 'my awesome project' | ||
9 | }, | ||
10 | author: { | ||
11 | desc: '请输入开发者名称', | ||
12 | default: '' | ||
13 | }, | ||
14 | repo: { | ||
15 | desc: '请输入 git 仓库名', | ||
16 | default: 'my-awesome-project' | ||
17 | } | ||
18 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
2 | "name": "@zb100/mui-template", | 2 | "name": "@zb100/mui-template", |
3 | "version": "1.1.0", | 3 | "version": "1.1.0", |
4 | "description": "小程序组件模版", | 4 | "description": "小程序组件模版", |
5 | "main": "index.js", | ||
5 | "scripts": { | 6 | "scripts": { |
6 | "release": "standard-version", | 7 | "release": "standard-version", |
7 | "commit": "npx git-cz" | 8 | "commit": "npx git-cz" | ... | ... |
-
Please register or sign in to post a comment