Tasks demos for fbi-v2.x
./fbi/serve.js
: Serve static files -fbi serve
./fbi/run.js
: Run npm scripts -fbi run [npm script name]
./fbi/clone.js
: Clone fbi data repository (tasks & templates)./fbi/pull.js
: Update fbi data repository (tasks & templates)
Note: fbi ls
to see available npm scripts
$ npm i -g fbi
$ git clone git@github.com:neikvon/fbi-tasks-demo.git
$ npm install
$ fbi ata *
# output:
# FBI => task 'run' added
# FBI => task 'serve' added
# or
$ fbi ata serve
(update: v2.0.5+, the ata
action will also copy the node_modules
folder.)
Now you can use tasks you just added everywhere.
$ fbi ls
# output:
# Tasks:
# run -g
# serve -g
$ fbi serve
# output:
# FBI => Running global task "serve"...
# FBI => Server runing at http://localhost:8888
# FBI => Server root: ./
$ fbi ata serve
# output:
# FBI => task 'serve' updated