javascript library template using webpack 4
This is a fbi project template. If you haven't installed fbi yet, use the following command to install.
$ npm i -g fbi
oryarn global add fbi
fbi v3.0+
node v7.6+
- eslint (standard)
- stylelint (standard)
- babel
- postcss
- wasm
- worker
- multiple builds
- environmental data injection
1. Add template
$ fbi add https://github.com/fbi-templates/fbi-project-lib.git
2. Create a project
$ cd path/to/workspace
$ fbi init -o lib my-lib
3. Run a task
$ fbi <task> [params]
others:
Update template
$ fbi up lib
Update options
$ fbi init -o
Show available tasks
$ fbi ls
- Description: watch files change and compile.
- Params:
name
{string}
bundle targets(./fbi/options.js->builds
)
- Alias:
w
- Examples:
fbi w
fbi w --name=target1
fbi w --name=target1,target2,...
- Description: Build the project on production mode.
- Params:
name
{string}
bundle targets(./fbi/options.js->builds
)
- Alias:
p
- Examples:
fbi p
fbi p --name=target1
fbi p --name=target1,target2,...
-
2.0.3 (2018.07.05)
- add
data
copy
options for each build - add
dist
config - delete redundant files�
- delete
package-lock.json
- add
-
2.0.2 (2018.07.03)
- add
fs-extra
module
- add
-
2.0.1 (2018.07.03)
- fix loader's path for webpack
-
2.0.0 (2018.06.28)
- replace
rollup
withwebpack
- replace
-
1.0.5 (2018.06.27)
- add peer dependencies of
eslint-config-standard
- add peer dependencies of
-
1.0.4 (2018.06.27)
- support 'web worker':
import MyWorker from 'worker!./my-worker.js'
- support file copy:
./fbi/options.js->copy
- support 'web worker':
-
1.0.3 (2018.06.27)
- support turn on/off
uglify
for each build
- support turn on/off
-
1.0.2 (2018.06.27)
- update readme
-
1.0.1 (2018.06.27)
- add
.editorconfig
file
- add
-
1.0.0 (2018.06.27)
- init