0.1.0 • Published 6 years ago
fe-clever-cli v0.1.0
Cli for Manage project
A simple CLI for Create/General Project
Feature(特征)
Usage(用法)
Installation
Prerequisites: Node.js (>=6.x, 8.x preferred), npm version 3+ and Git.
$ npm install fe-clever-cli -g
config
.cleverrc.js
module.exports = {
projectName: 'test',//项目名称
dest: 'src',//目标文件夹
repository: {
protocal: '',//协议
branch: '',//分支
origin: '',//代码源
host: '',//
},
generateTpls: { //配置工具模板 可以是文件夹/文件
component: {
tpl: '', //模板路径
defaultDest: '', //默认输出地址
},
model: {
tpl: './templates/demo.js',
defaultDest: '/project/model',
},
routes: {},
view: {
tpl: './templates/demo',
defaultDest: '/project'
}
}
};
New a project form your config
$ fec new // will download your .cleverrc.js origin/branch template
$ fec new --no-auto-install // not auto install dependencies
Generate
$ cd your application
$ fec g
CHANGELOG
0.0.1
- create the project