sanx-cli

1.0.6 • Public • Published

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

/sanx-cli/

    Package Sidebar

    Install

    npm i sanx-cli

    Weekly Downloads

    1

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    28.3 kB

    Total Files

    45

    Last publish

    Collaborators

    • hustchenbo