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.
$ npm install sixstone -g Global installation only;
-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)
MIT
-
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
distfolder;expressas an example; -
Open the
conf/sixstone-config.jsfile, fill in your own configuration item;{ 'command': 'express', // command 'description': 'express-generator' // description; } -
Open the
package.json, modify thebinfield;Can only change the name of the attribute"bin": { "zhangsan": "./bin/index.js" }, -
Execute link
npm command; -
Upload packets to NPM, this can be read online tutorial.