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
You can install the CLI on Windows & Linux based machines as follows:
git clone https://github.com/bilo-io/bilo-cli
cd ./bilo-cli
bash ./.shell/install.sh
./.shell/install.ps1
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
bilo
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
:
mkdir ExampleApp
cd ./ExampleApp
Run the command
bilo
to bring up the menuapp
... initialises an app folder.Alternatively, you can run the commands immediately, as follows:
bilo app
For some commands there is also the shorthand notation:
bilo a
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 |