Total Pageviews

Sunday, 6 April 2014

fis-前端整合解决方案

front-end integrated solution.

# install fis
$ npm install -g fis

# start local server
$ fis server start

# install service
$ fis server install pc2

$ mkdir project

$ cd project

# install a pc2-demo project
$ fis install pc2-demo

# release your project to local server
$ fis release --watch

# browse http://localhost:8080/photo

Commands

Usage: fis <command>

Commands:

  release     build and deploy your project
  install     install components and demos
  server      launch a php-cgi server

Options:

  -h, --help     output usage information
  -v, --version  output the version number
  --no-color     disable colored output
more information:

Configure fis

# create fis config file
$ vim path/to/project/fis-conf.js 
 
from https://github.com/lonjoy/fis