0.0.7 • Published 4 years ago

@hellcat/cli v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

@hellcat/cli

一个中心化的 cli 工具,帮助团队内部进行一站式地创建开发/调试/部署项目

简介

本 cli 是以一个中心化基座,多模块插入为理念而设计而成的,所以 cli 中只包含安装插件和使用插件 2 种方式,另外还有配置

已安装的插件会注册 command 名称,能在结合 cli 的方式下使用

在中心化多插件的方式下,就能在同一个 cli 下使用多个命令,从而达到一站式地开发项目

安装

npm i -g @hellcat/cli

or

yarn add -g @hellcat/cli

使用

Usage: hc <command> [options]

Commands
  config [get|set] [options]    get or set the cli config
  install <plugin-name>         install a hellcat plugin
  <plugin-command> [options]    run a hellcat plugin command
Options:
  -V, --version
  -h, --help

例子

现在以创建项目插件为例子

  1. 首先全局安装插件,运行安装 npm 包的命令:

    npm i -g @hellcat/plugin-template

    此刻@hellcat/plugin-template 已安装,下次启动 cli 时就能使用该插件,具体的使用方式可以参考: @hellcat/plugin-template

  2. 使用该插件

    hc create demo

    此处的 create 是@hellcat/plugin-template 的注册命令,所以hc create能直接调用@hellcat/plugin-template插件,而demo为传参

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago