rf-hf-tools

2.2.1 • Public • Published

rf-hf-tools web前端工具箱(类vue-cli等)

模板生成命令

全局安装

  • (如之前有安装可以 先卸载 npm uninstall rf-hf-tools -g)
  • npm install rf-hf-tools -g

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

npm install rf-hf-tools@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
    imgMin [options]               Compress images by tinypng api
    help [command]                 display help for command
 
    Examples:
    $ custom-help --help
    $ custom-help -h
 
   代码执行模块:
 
    "dev": "npx hf-cli --project rfhouse-html-dev --gitBranch */dev_branch setup dev",
    "test": "npx hf-cli  --project rfhouse-html-test-bytag --gitBranch */dev_branch setup test",
    "build": "npx hf-cli --project rfhouse-html-bytag --branch xx setup build",
    "test:tag": "npx hf-cli --project rfhouse-html-test-bytag --autotag true setup test",
    "push": "npx hf-cli push -p true",
    "auto-tag": "npx hf-cli git-tag",
    "auto-replace": "npx hf-cli auto-replace-file",
    "auto-serve": "npx hf-cli auto-serve -p 8007",
    "upload": "npx hf-cli uploadMini"
 

自动生成模板

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

模板类型

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

注意

重要补丁和更新

Readme

Keywords

none

Package Sidebar

Install

npm i rf-hf-tools

Weekly Downloads

15

Version

2.2.1

License

ISC

Unpacked Size

144 kB

Total Files

53

Last publish

Collaborators

  • lizhang
  • reng99
  • chenlei1997
  • hym1995