🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

hlj-cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hlj-cli - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+6
-5
command/init.js

@@ -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 @@ })

{
"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",