+1
-34
@@ -185,39 +185,6 @@ #!/usr/bin/env node | ||
| console.log('插件模板下载完成') | ||
| if (template.indexOf('fineui') > -1) { | ||
| downloadFineui() | ||
| } else { | ||
| runConfig() | ||
| } | ||
| runConfig() | ||
| }) | ||
| } | ||
| function downloadFineui () { | ||
| const spinner = ora('正在下载fineui...') | ||
| spinner.start() | ||
| shell.cd(to) | ||
| downloadGit('https://github.com/fanruan/fineui.git', `./fineui`, {checkout: 'master'}, err => { | ||
| spinner.stop() | ||
| if (err) { | ||
| inquirer.prompt([{ | ||
| type: 'confirm', | ||
| message: 'fineui下载失败,是否重试?', | ||
| name: 'fineui' | ||
| }]).then(function (answers) { | ||
| if (answers.fineui) { | ||
| downloadFineui() | ||
| } else { | ||
| console.error('可以在安装完成之后执行以下命令安装fineui') | ||
| console.log(chalk.yellow(` cd ${projectName}`)) | ||
| console.log(chalk.yellow(' git clone https://github.com/fanruan/fineui.git')) | ||
| runConfig() | ||
| } | ||
| }).catch(logger.fatal) | ||
| } else { | ||
| console.log('fineui下载完成') | ||
| runConfig() | ||
| } | ||
| }) | ||
| } | ||
| function runConfig () { | ||
@@ -224,0 +191,0 @@ try { |
+5
-2
| { | ||
| "name": "fine-cli", | ||
| "version": "0.0.1", | ||
| "description": "用于快速构建帆软平台前端插件的CLI", | ||
| "version": "0.0.2", | ||
| "description": "用于快速构建帆软前端插件的CLI", | ||
| "main": "index.js", | ||
@@ -28,3 +28,6 @@ "scripts": { | ||
| "util": "^0.12.1" | ||
| }, | ||
| "publishConfig": { | ||
| "registry": " https://registry.npmjs.org/" | ||
| } | ||
| } |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3
-25%9044
-8.48%265
-10.47%