Simple web application.
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+
- no framework
- vue
- react
- hyperapp
Add the template
$ fbi add https://github.com/fbi-templates/fbi-project-simple.git
Create a project
$ cd path/to/workspace
$ fbi init simple my-simple-project
Show available tasks
$ fbi ls
Run a task
$ fbi <task> [params]
Run a example
- Initialize the options file:
$ fbi init -o
- Cases:
- no framework
- Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/index.html')]
- vue
- Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/vue/index.html')]
- react
- Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/react/index.html')]
- hyperapp
- Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/hyperapp/index.html')]
- no framework
- Start development server:
$ fbi s
- Description: Start development server.
- Params: none
- Alias:
s
- Examples:
$ fbi s
- Description: Build the project for the specified environment.
- Params: none
- Alias:
b
- Examples:
$ fbi b
How to change the build configuration?
- Initialize the options file to the project directory.
$ cd path/to/my-simple-project
$ fbi init -o # or `--options`
- The options file will be located at
fbi/options.js
, includes instructions.
How to change the build logic?
- Initialize options file and tasks to the project directory.
$ cd path/to/my-simple-project
$ fbi init -t # or `--tasks`
- Files will be located at
fbi
folder. Do what you want to do.
Where is the build dependencies?
Build dependencies are by default in fbi's store. You can use the following command to download to the project.
$ fbi init -a # or `--all`
Note: If local tasks or options exist, the original files will be backed up in
fbi-bak
folder.