1.0.4 • Published 6 years ago

ffalcon-cms-cli v1.0.4

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

Cli for ffalcon cms

A simple CLI for ffalcon cms projects.

npm package

Feature

  • Standard ffalcon cms template.
  • Interactive command line.
  • Common pages & components & models & services template.
  • Support prettier-eslint

Usage

Installation

Prerequisites: Node.js (>=6.x, 8.x preferred), npm version 3+ and Git.

$ npm install ffalcon-cms-cli -g

New a ffalcon cms template

$ cms new // will download ffalcon-cms in current directory
$ cms new --no-auto-install // not auto install dependencies

Generate pages / components / models to project

$ cd your application
$ cms g

Prettier eslint your code

$ cms p [filePath]

Example:

$ cd your application
$ cms p ./test.js

Custom template

Creating a directory named 'tpl' in your project's root path, and all file in this folder will can be choose in cms cli:

CHANGELOG

1.0.4

  • license MIT

1.0.0

  • synchronization ffalcon cms 1.0.0
  • remove simple & browser history simple, recommend use standard directly

0.2.7

  • remove 'antd@next'

0.2.6

  • add prettier-eslint support
    • run cms p [filePath] or cms prettier [filePath]

0.2.5

  • add --no-auto-install config
  • fixed typo

0.2.3

  • new simple templates
    • standard: all functional ffalcon cms scaffold
    • simple: simple version of ffalcon cms with hash history
    • browser history simple: simple version of ffalcon cms with browser history

0.2.2

  • change the command
    • support shorthand of command
      • cms new -> cms n
      • cms generate -> cms g
    • support custom file template

0.2.1

  • change the command
    • new -> generate
    • init -> new

0.2.0 deprecated

  • change the command
    • new -> generate
    • init -> new

0.1.5

  • change the command
    • init -> new a ffalcon cms scaffold
    • new -> generate templates