1.1.0 • Published 7 years ago

gfs-cli v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

gfs-cli

cli for f2e future static

Install

$ npm install -g gfs-cli

Usage

gfs

Default show help

$ gfs 

project template

Supported project template generated by future-static maps list:

project typecli templatefile type
webpack+react+redux+cortexreact-reduxweb, component
webpack+reactreact-dmweb(default)
webpack+jquery+handlebars+cortex----
module-template(jquery or react)----
module-ts-template----

you can use it like:

# add `webpack+react+redux+cortex` component files
$ gfs add --template react-redux --type component --name question-detail

# add `webpack+react+redux+cortex` web files
$ gfs add --template react-redux --type web --name question

# add `webpack+react` web files
$ gfs add --template react-dm --name question

gfs add

Add generator-name to current project

$ gfs add --template react-redux --type component --name question-detail
$ gfs add --template react-redux --type web --name question

###gfs rm Remove generator-name from current project, it will give a prompt before remove

$ gfs rm --template react-redux --type component --name question-detail
$ gfs rm --template react-redux --type web --name question

npm alias

Some aliases for npm script, this dependency your package.json script config

$ gfs build
$ gfs dev
$ gfs demo
$ gfs start

Test

$ npm run test