/fbi-template-webpack2

Project template with Webpack 2, Koa 2, Postcss and Babel 6

Primary LanguageJavaScript

fbi-template-webpack2

Webpack Demo template for fbi-v2.x

Introduction:

Simple scafford for web application

Features: es2015/2016(babel), webpack 2, postcss, static server(koa 2).

Usage:

First

$ npm i -g fbi

Clone

$ git clone git@github.com:neikvon/fbi-template-webpack2.git

Install dependencies locally

$ npm install

Test

$ fbi b
$ fbi b -p
$ fbi w
$ fbi s
$ fbi c

You can add more tasks.

Add to fbi templates

$ cd path/to/fbi-template-webpack2
$ fbi atm

Check

$ fbi ls


# output:

# Tasks:

#  b, build        -t
#  c, clean        -t
#  s, serve        -t
#  w, watch        -t
#  b, build
#  c, clean
#  s, serve
#  w, watch

# Templates:

#  ★  webpack2 <current> - Simple, es2015 + webpack + postcss.

Note:

  • empty means local tasks.
  • -t means template tasks;
  • -g means global tasks;

You can specify a template task use fbi [task] -t

By the way, you can check the task content use fbi cat [task] -t

More help: fbi -h

Reuse

$ cd path/to/other/folder
$ fbi init webpack2

you can use all the template tasks now.