+6
-5
@@ -6,5 +6,5 @@ 'use strict' | ||
| const chalk = require('chalk') | ||
| var fs = require("fs"); | ||
| var path = require("path"); | ||
| var download =require('download-git-repo') | ||
| const fs = require("fs"); | ||
| const path = require("path"); | ||
| const download =require('download-git-repo') | ||
| module.exports = () => { | ||
@@ -24,2 +24,3 @@ co(function *() { | ||
| console.log(chalk.white('\n Start generating...')) | ||
| console.log(gitUrl,branch) | ||
| download(`${gitUrl}#${branch}`,path.join(process.cwd(),projectName),{ clone: true },(err)=>{ | ||
@@ -31,4 +32,4 @@ if (err) { | ||
| console.log(chalk.green('\n √ Generation completed!')) | ||
| console.log(`\n cd ${projectName} && npm install \n`) | ||
| console.log(`\n npm start`) | ||
| console.log(`\n cd ${projectName} && yarn install \n`) | ||
| console.log(`\n yarn start`) | ||
| process.exit() | ||
@@ -35,0 +36,0 @@ }) |
+4
-3
| { | ||
| "name": "hlj-cli", | ||
| "version": "1.2.0", | ||
| "version": "1.2.1", | ||
| "description": "A simple CLI for creating your projects", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
| "bin": { | ||
| "hlj-cli": "bin/hlj.js" | ||
| "hlj": "bin/hlj.js" | ||
| }, | ||
@@ -20,3 +20,4 @@ "keywords": [ | ||
| "cli", | ||
| "es6" | ||
| "react", | ||
| "vue" | ||
| ], | ||
@@ -23,0 +24,0 @@ "author": "zhangchao828", |
14680
0.36%140
0.72%