neuron-cli
Command line tools for neuron.js.
Before reading this document, it is better to know modules/1.1.1 and packages/1.0
Install
$ npm i -g neuron-cli
Terminology
Module
A module is the minimun logic unit of javascript and each javascript file of commonjs or es6 module is a module
Package
A package could not only contain one or more modules, but also css files, templates, images and other resources.
Project configurations
All configurations are located at neuron.config.js
at the root of your project.
Frequent Commands
Helpers
$ neuron # see basic help
$ neuron build -h # see command help for `neuron build`, or you can use
$ neuron help build
Available Commands
-
neuron build
build a package or packages. -
neuron server
start a neuron develop server. By default, neuron server will observe the changes of the resource files, and run the building automatically. -
neuron watch
watch a directory, and build when files change.
License
MIT