Skip to content

neikvon/fbi-tasks-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fbi-tasks-demo

Tasks demos for fbi-v2.x

Introduction:

  • ./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

Usage:

First

$ npm i -g fbi

Clone

$ git clone git@github.com:neikvon/fbi-tasks-demo.git

Install dependencies locally

$ npm install

Add

$ 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.

Check

$ fbi ls

# output:
# Tasks:

#   run             -g
#   serve           -g

Test

$ fbi serve

# output:
# FBI => Running global task "serve"...
# FBI => Server runing at http://localhost:8888
# FBI => Server root: ./

Update

$ fbi ata serve

# output:
# FBI => task 'serve' updated

About

Tasks demo for fbi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published