Socket
Socket
Sign inDemoInstall

cli-ant

Package Overview
Dependencies
160
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.10 to 0.0.11

87

index.js

@@ -13,2 +13,3 @@ #!/usr/bin/env node

// 外层Select
const ipromptConfig = [

@@ -36,3 +37,59 @@ {

name: 'React',
value: 'react'
},
{
name: 'Node',
value: 'node'
}
]
}
]
let ipromptConfigTemplate = []
const VUE_LIST = [
{
type: 'list',
name: 'template',
message: '请选择模版',
choices: [
{
name: 'Vue2',
value: 'vue2'
},
{
name: 'Vue3',
value: 'vue3'
},
{
name: 'Nuxt',
value: 'nuxt-temp'
}
]
}
]
const REACT_LIST = [
{
type: 'list',
name: 'template',
message: '请选择模版',
choices: [
{
name: 'React',
value: 'react-temp'
},
{
name: 'Next',
value: 'next-temp'
},
]
}
]
const NODE_LIST = [
{
type: 'list',
name: 'template',
message: '请选择模版',
choices: [
{
name: 'Egg',
value: 'egg-temp'
}

@@ -42,3 +99,3 @@ ]

]
let ipromptConfigTemplate = []
let meta = {}

@@ -75,3 +132,3 @@ // 下线 Template Repo

try {
await fse.copySync(`${target}/template/${temp}`, `./${name}`)
await fse.copySync(`${target}/${temp}`, `./${name}`)
await fse.removeSync(target)

@@ -131,22 +188,10 @@ await mergenPackage(name)

if (c.template === 'vue') {
ipromptConfigTemplate = [
{
type: 'list',
name: 'template',
message: '请选择模版',
choices: [
{
name: 'Vue2',
value: 'vue2'
},
{
name: 'Vue3',
value: 'vue3'
}
]
}
]
ipromptConfigTemplate = VUE_LIST
chooseTemplate(name)
} else if (c.template === 'create-temp' ) {
pullRepo(c.template, name)
} else if (c.template === 'react' ) {
ipromptConfigTemplate = REACT_LIST
chooseTemplate(name)
} else if (c.template === 'node') {
ipromptConfigTemplate = NODE_LIST
chooseTemplate(name)
} else {

@@ -153,0 +198,0 @@ return

{
"name": "cli-ant",
"version": "0.0.10",
"version": "0.0.11",
"description": "cli",

@@ -15,4 +15,3 @@ "homepage": "https://github.com/xiaotiandada/cli-ant",

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"publish": "npm publish --registry http://registry.npmjs.org"
"test": "echo \"Error: no test specified\" && exit 1"
},

@@ -19,0 +18,0 @@ "author": "",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc