neuron-cli
Version:
The neuron command line tool
53 lines (31 loc) • 1.63 kB
Markdown
[](https://travis-ci.org/kaelzhang/neuron-cli)
<!-- [](http://badge.fury.io/js/neuron-cli)
[](https://www.npmjs.org/package/neuron-cli)
[](https://david-dm.org/kaelzhang/neuron-cli) -->
# neuron-cli
Command line tools for [neuron.js](https://www.npmjs.com/package/neuron.js).
Before reading this document, it is better to know [modules/1.1.1](http://wiki.commonjs.org/wiki/Modules/1.1.1) and [packages/1.0](http://wiki.commonjs.org/wiki/Packages/1.0)
## Install
```sh
$ 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
```sh
$ 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