Skip to content

A fbi project template which uses `Vue.js` and `Typescript`

License

Notifications You must be signed in to change notification settings

fbi-templates/fbi-project-vue-ts

Repository files navigation

fbi-project-vue-ts

A modern project template of fbi which uses Vue.js and Typescript.

This is a fbi project template. If you haven't installed fbi yet, use the following command to install.

$ npm i -g fbi or yarn global add fbi

Requirements

  • fbi v3.0+
  • node v7.6+

Usage

Create a project

$ cd path/to/workspace
$ fbi init https://github.com/fbi-templates/fbi-project-vue-ts.git new-project  

or

$ fbi add https://github.com/fbi-templates/fbi-project-vue-ts.git
$ cd path/to/empty-folder
$ fbi init vue

Show available tasks

$ fbi ls

Run a task

$ fbi <task> [params]

Tasks

serve

  • Description: Compile and start development server.
  • Params:
    • port {Number} Server starting port. If occupied, switch automatically.
  • Alias: s
  • Examples:
    • fbi s -port=9999

build

  • Description: Build the project for the specified environment.
  • Params:
    • prod {Boolean} (default) Production environment.
    • test {Boolean} Test environment.
  • Alias: b
  • Examples:
    • fbi b -t
    • fbi b -t=true
    • fbi b -test=true
    • fbi b --p

More

Reference

License

MIT

Changelog

  • 1.0.0 (2017.12.30)
    • Init project template