1.21.0 • Published 2 years ago

times-cli v1.21.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

times-cli

times-cli web 前端工具箱(类 vue-cli 等)

模板生成命令

全局安装

  • (如之前有安装可以 先卸载 npm uninstall times-cli -g)
  • npm install times-cli -g

如需下载特定版本 加@1.8.5(版本号)

npm install times-cli@1.8.5 -g

    Usage: main [options] [command]

    Options:
    -V, --version                  output the version number
    -project,--project [name]      build you develop project name
    -token,--apitoken [apitoken]   send your api token
    -author,--author [name]        send your author
    -trigger,--triggerName [name]  send your triggerName
    -branch,--gitBranch [name]     send your gitBranch/tags
    -autotag,--autotag [name]      auto creat your tags
    -host,--host [name]            send your jenkis host
    -file,--file [name]            send your file
    -newfile,--newfile [name]      send your newfile
    -imgMin,--k
    -h, --help                     display help for command

    Commands:
    setup [env]                    run setup commands for all envs
    git-tag [options] [env]        set git tag for all envs
    auto-replace-file [env]        run auto-replace-file for repalce file
    push [options] [env]           run push commands for all envs
    auto-serve [options] [env]     run auto-serve commands for all envs
    create                         run create template file commands
    uploadMini                     run upload miniprogrammer  commands
    husky                          run husky your project commands
    imgMin [options]               Compress images by tinypng api
    help [command]                 display help for command

    Examples:
    $ custom-help --help
    $ custom-help -h

   代码执行模块:

    "dev": "times-cli --project rfhouse-html-dev --gitBranch */dev_branch setup dev",
	"test": "times-cli  --project rfhouse-html-test-bytag --gitBranch */dev_branch setup test",
    "build": "times-cli --project rfhouse-html-bytag --branch xx setup build",
    "test:tag": "times-cli --project rfhouse-html-test-bytag --autotag true setup test",
    "push": "times-cli push -p true",
    "auto-tag": "times-cli git-tag",
    "auto-replace": "times-cli auto-replace-file",
    "auto-serve": "times-cli auto-serve -p 8007",
    "upload": "times-cli uploadMini"

自动生成模板

  • times-cli create 即可运行生成文件交互式命令

模板类型

  • vue、小程序 page、小程序 component

预编译 less

  • times-cli less 即可开启监听 也可以 times-cli less -s wxss/css 可传入想生成的文件后缀

自动生成 husky 配置

  • times-cli husky 即可运行生成 husky 配置工程化

重要补丁和更新

  • 更新了微信自动发布 去微信小程序管理后台 配置下载 key 参考文档
  • 更新了一个 yarn 安装调整为 cnpm 淘宝镜像
  • 新增 pnpm 依赖包选项卡

本地调试

  • 使用 npm root -g 找到 NPM 全局包安装位置
  • 具体查看当前电脑安装路径(一般 times-cli 的项目路径为:C:\Program Files\nodejs\node_modules\times-cli)
  • 修改 times-cli 全局包安装位置 然后执行 times-cli 就是当前开发的命令行

发布私有库

注意

1.16.3

2 years ago

1.18.0

2 years ago

1.16.2

2 years ago

1.16.1

2 years ago

1.16.0

2 years ago

1.21.0

2 years ago

1.19.0

2 years ago

1.15.4

2 years ago

1.17.1

2 years ago

1.15.6

2 years ago

1.15.5

2 years ago

1.20.1

2 years ago

1.15.0

2 years ago

1.14.1

2 years ago

1.13.2

2 years ago

1.11.4

2 years ago

1.14.0

2 years ago

1.13.1

2 years ago

1.12.2

2 years ago

1.11.3

2 years ago

1.13.0

2 years ago

1.12.1

2 years ago

1.11.2

2 years ago

1.12.0

2 years ago

1.11.1

2 years ago

1.14.5

2 years ago

1.13.6

2 years ago

1.12.7

2 years ago

1.11.8

2 years ago

1.14.4

2 years ago

1.13.5

2 years ago

1.12.6

2 years ago

1.11.7

2 years ago

1.14.3

2 years ago

1.13.4

2 years ago

1.12.5

2 years ago

1.11.6

2 years ago

1.14.2

2 years ago

1.13.3

2 years ago

1.12.4

2 years ago

1.11.5

2 years ago

1.13.9

2 years ago

1.0.9

2 years ago

1.13.8

2 years ago

1.12.9

2 years ago

1.0.8

2 years ago

1.13.7

2 years ago

1.12.8

2 years ago

1.11.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago