1.0.6 • Published 6 years ago

sanx-cli v1.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

sanx-cli

sanx cli is a scaffolding for San.js development, and you can use it on any other project.
If you have been used the vue-cli before,you will find they are very similar, they are both based on metalsmith to handle template. To reduce the learning cost of developers, we referenced the usage and plugins from vue-cli, so the developers can easily create their own template just as they do in vue project.

Installation

Prerequisites: Node.js (>=8.x), npm version 4+ and Git.

$ npm install -g sanx-cli

Usage

$ sanx init <template-name> <project-name>

Example:

$ sanx init hustchenbo/san-webpack  my-project

It will download the template from a git repo and generate the project to the dest.

You can use your local template too.

Example:

$ sanx init localDir my-project