bilo-io / bilo-cli

A CLI for creating NodeJS frontend and backend apps
3 stars 0 forks source link

bilo-cli

This is a repo containing scripts to automate various tasks for NodeJS projects. These tasks have all been combined into a CLI (command line interface), called bilo.

  • Currently, there is only the functionality to create frontend projects
  • An item has been created for initialising server projects as well

Quickstart

You can install the CLI on Windows & Linux based machines as follows:

Install

Optional:

  • by default, the cli is called bilo
  • you can give this CLI an alias (e.g. my-cli)
  • provide the alias as an argument: bash ./.shell/install.sh my-cli

Run

Usage

The CLI can be used to create NodeJS applications, where you can add Express, Webpack, React & Angular. Below is an example for how to create a webapplication in a newly created, empty folder.

In an empty folder, such as ExampleApp:

Run the command

Alternatively, you can run the commands immediately, as follows:

For some commands there is also the shorthand notation:

CLI Commands

Below is a full list of commands provided by the bilo CLI.

command effect
a OR app creates a Node (v6) webapp
b OR build builds a production package using webpack
c OR clean cleans the directory, removing all generated folders, while leaving src and required files untouched
d OR deploy deploys the generated artifact to a local directory, simulating the prod environment
express adds Express, a minimalist web framework for NodeJS
ng2 adds Angular 2, a framework for dynamic web apps
react adds ReactJS, a library for building frontend web applications
webpack adds Webpack a module bundler for javascript projects