Skip to content

Simple web application using parcel, support no framework, vue, react, preact and hyperapp.

License

Notifications You must be signed in to change notification settings

fbi-templates/fbi-project-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbi-project-simple

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 or yarn global add fbi

Requirements

  • fbi v3.0+
  • node v7.6+

Examples

parcel examples

  • no framework
  • vue
  • react
  • hyperapp

Usage

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

  1. Initialize the options file: $ fbi init -o
  2. Cases:
    1. no framework
      1. Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/index.html')]
    2. vue
      1. Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/vue/index.html')]
    3. react
      1. Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/react/index.html')]
    4. hyperapp
      1. Change options.js=>parcel.entry -> [path.join(process.cwd(), 'src/hyperapp/index.html')]
  3. Start development server: $ fbi s

Tasks

serve

  • Description: Start development server.
  • Params: none
  • Alias: s
  • Examples:
    • $ fbi s

build

  • Description: Build the project for the specified environment.
  • Params: none
  • Alias: b
  • Examples:
    • $ fbi b

Advanced

How to change the build configuration?

  1. Initialize the options file to the project directory.
$ cd path/to/my-simple-project
$ fbi init -o # or `--options`
  1. The options file will be located at fbi/options.js, includes instructions.

How to change the build logic?

  1. Initialize options file and tasks to the project directory.
$ cd path/to/my-simple-project
$ fbi init -t # or `--tasks`
  1. 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.

More

License

MIT

About

Simple web application using parcel, support no framework, vue, react, preact and hyperapp.

Resources

License

Stars

Watchers

Forks

Packages

No packages published