0.1.7 • Published 2 years ago

m-fe-cli-tool v0.1.7

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
2 years ago

强烈推荐

项目基于墨焰的 @irim/cli-base 提供的命令行基础能力之上开发。强烈大家去 start 和 follow 墨焰 墨焰个人空间:https://github.com/huarse

前端基础工具 node cli, 所有插件均以 m-fe-plugin- 开头

Getting Started

  • $ npm install -g m-fe-cli-tool

如果提示没有权限,请尝试以下两种方法:

  1. 将 /usr/local 目录改为当前用户(推荐): sudo chown -R <用户名> /usr/local
  2. 或使用 sudo npm install -g m-fe-cli-tool 安装

调用插件

fe pluginName 直接运行插件,如果插件不存在,自动安装m-fe-plugin-xx开头的包

API

Plugin 插件管理: 用于管理插件的插件

  • $ fe plugin ls 显示本地所有已安装插件
  • $ fe plugin del xxx 删除指定插件
  • $ fe plugin update xxx 更新指定的插件
  • $ fe plugin install xxx 安装指定的插件

Init 插件:用于初始化工程

  • $ fe init 从默认的模板中初始化工程(有二次交互)
  • $ fe init xxx 以 fe-base/template-xxx 项目作为模板初始化工程
  • $ fe init aaa/bbb 以 aaa/bbb 项目作为模板初始化工程
  • $ fe init --git=https://github.com/aaa/bbb.git 直接从一个 GIT 工程作为模板初始化工程