0.1.0 • Published 6 years ago

fe-clever-cli v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Cli for Manage project

A simple CLI for Create/General Project

Build Status

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
0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago