1.0.2 • Published 4 years ago

cactus-fe-cli v1.0.2

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

cactus-fe-cli

魔法校前端项目脚手架, 轻松创建项目模板, 实现0配置, 快速开发。

Features

  • 支持多类型项目模板
  • 支持添加项目模板, 删除项目模板
  • 支持自动检测脚手架更新

Installation & Quick start

安装

Windows系统安装

$ npm i cactus-fe-cli -g

Mac下安装

$ sudo npm i cactus-fe-cli -g

查看帮助信息

$ cactus

创建项目

# 指定项目名字创建项目
$ easy create 模板名<template-name> 项目名字<project-name>
例如:创建vue项目 easy create vue vue-demo

查看所有支持的项目模板

$ cactus list

添加项目模板

$ cactus add 模板名<template-name> 模板仓库地址,支持ssh/https格式<git-repo-address>

删除项目模板

$ cactus delete 模板名<template-name>

发布到npm

执行pkg下的脚本, 自动发版并且生成changelog, travis就会执行检测后续自动发到npm.

npm run release