tmui-cli 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/tmui.js +12 -8
  2. package/package.json +1 -1
package/bin/tmui.js CHANGED
@@ -17,32 +17,28 @@ chalk.then(v=>{
17
17
  console.log(ck.green(`tmui3.0`))
18
18
  console.log(ck.green(`欢迎使用tmui3.0 cli 命令行工具`))
19
19
  console.log(ck.green(`将引导你创建一个tmui3.0组件框架的UNIAPP项目`))
20
- console.log(ck.bgBlue(`文档地址:https://tmui.design.com`))
20
+ console.log(ck.green(`文档地址:https://tmui.design.com`))
21
21
  console.log(ck.green(`---------------------------------------------------`))
22
22
  console.log(ck.green(`---------------------------------------------------`))
23
23
  program
24
24
  .version(require('../package').version)
25
- .option('-c cli','[可选指定版本号] 创建新的cli tmui3.0 项目[推荐]')
26
- .option('-c hbx','[可选指定版本号] 创建新的hbx tmui3.0 项目[不推荐]')
27
- .option('-c rcli','[可选指定版本号] 已有cli项目下载/更新tmui3.0')
28
- .option('-c rhbx','[可选指定版本号] 已有hbx项目下载/更新tmui3.0')
29
25
  program.command('cli')
30
26
  .description('创建cli uniapp tmui3.0 项目[推荐]')
31
27
  .action(function(type, name){
32
28
  create.run(type,name)
33
29
  })
34
30
  program.command('hbx')
35
- .description('创建hbx uniapp tmui3.0 项目[不推荐]')
31
+ .description('[可选指定版本号] 创建hbx uniapp tmui3.0 项目[不推荐]')
36
32
  .action(function(type, name){
37
33
  createHbx.run(type,name)
38
34
  })
39
35
  program.command('rcli')
40
- .description('已有cli项目下载/更新tmui3.0')
36
+ .description('[可选指定版本号] 已有cli项目下载/更新tmui3.0')
41
37
  .action(function(type, name){
42
38
  rcli.run(type,name)
43
39
  })
44
40
  program.command('rhbx')
45
- .description('已有hbx项目下载/更新tmui3.0')
41
+ .description('[可选指定版本号] 已有hbx项目下载/更新tmui3.0')
46
42
  .action(function(type, name){
47
43
  rhbx.run(type,name)
48
44
  })
@@ -51,6 +47,14 @@ chalk.then(v=>{
51
47
  .action(function(type, name){
52
48
  viewTmuiVer.run(type,name)
53
49
  })
50
+ program.command('use')
51
+ .description('如何使用本命令行?')
52
+ .action(function(type, name){
53
+ console.log(ck.green(`全局安装本命令 npm -g install tmui-cli`))
54
+ console.log(ck.green(`在你已有/空目录下创建/更新组件。`))
55
+ console.log(ck.green(`比如在空目录下创建新的cli项目可以使用如下命令:`))
56
+ console.log(ck.bgGreen(`tmui cli`))
57
+ })
54
58
 
55
59
  program.parse();
56
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmui-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "tmui3.0",
5
5
  "main": "./bin/tmui.js",
6
6
  "scripts": {},