README
sixstone
Description
This is a package,which the aim is through a number of simple commands to achieve the function of the rapid generation of directory structure,which is similar to the express-generator, koa-generator. In which I put a set of KOA document structure and a set of front-end gulp document structure. Of course, you can also use this package to build their own personalized DIY package, will be mentioned in the back.
Installation
$ npm install sixstone -g Global installation only;
Command Line Options
-h, --help output usage information
-V, --version output the version number
sixstone koa [name] get environment of koa
sixstone web [name] get environment of Front end project(PC and Mobile)
License
MIT
Expand: generate a personalized directory structure package;
Cloning of the project and installation related dependency
git clone https://github.com/winterZhao/sixstone.git cd sixstone; npm install;
Put your own directory structure in the
dist
folder;express
as an example;Open the
conf/sixstone-config.js
file, fill in your own configuration item;{ 'command': 'express', // command 'description': 'express-generator' // description; }
Open the
package.json
, modify thebin
field;Can only change the name of the attribute"bin": { "zhangsan": "./bin/index.js" },
Execute link
Upload packets to NPM, this can be read online tutorial.