0.0.11 • Published 4 years ago

@inreasons/cli v0.0.11

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

@inreasons/cli

[loc]

介绍

包含多个功能的 cli 脚手架工程,可添加插件、管理 npm 源、一键拉取合并推送、安装依赖等

安装教程

  npm i @inreasons/cli -g

使用说明

plugins 查看插件列表

  # 查看所有可安装的插件列表
  reason plugins

add 添加插件到项目

  # 添加 xxx 插件至项目
  reason add xxx

release 自动推送

  # 一键提交、拉取、合并、推送至目标分支,且可推送到多个分支,并且记录上次选择可不用每次都重新选择分支
  reason release

origin 管理本地 npm 镜像地址

其实这个功能主要是为了安装依赖这个功能而添加的,因为不管是使用 nvm 还是使用 npm 原生修改镜像源的方法安装其他源的依赖项,要不需要记录比较长的命令,要不就需要反复切换。当然这个功能主要还是因为公司里的一个组件安装比较麻烦,所以才被开发出来。

  # 查看所有源
  reason origin -ls # 或者 reason origin --list
  # 新增源
  reason origin -a originName=http://xxxx.xxx # 或者 reason origin --add
  # 修改源
  reason origin -e originName=http://4321.321 # 或者 reason origin --edit
  # 删除源
  reason origin -d originName # 或者 reason origin --del

install 安装依赖至项目

  # 安装 xxx 依赖到当前项目
  reason install xxx
  # 安装依赖到全局
  reason install xxx -g
  # 指定依赖安装镜像源
  reason install xxx from xxx

publish 发布当前目录下的包

  # 将当前包发布到npm中,需非私有包
  reason publish
0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago