Socket
Socket
Sign inDemoInstall

lovelope-react-cli

Package Overview
Dependencies
163
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

10

bin/init.js

@@ -8,2 +8,4 @@ const fs = require('fs-extra');

const shelljs = require('shelljs');
const config = require('../config');

@@ -16,2 +18,3 @@ const getQuestions = require('./questions');

// eslint-disable-next-line no-unused-vars
function assert(v) {

@@ -29,6 +32,6 @@ console.dir(v);

.then(answers => {
const projectType = program.typescript ? 'ts' : 'default';
// 项目配置
const meta = {
name,
projectType: program.typescript ? 'ts' : 'default',
...answers,

@@ -38,3 +41,3 @@ };

// git仓库分支
const branch = gitBranchs[meta.projectType];
const branch = gitBranchs[projectType];

@@ -52,3 +55,3 @@ // 开始下载动画

})
.then(() => {
.then(async () => {
// 下载成功调用

@@ -63,2 +66,3 @@ spinner.succeed();

}
shelljs.rm('-rf', `${name}/.git`);
console.log(symbols.success, chalk.green('项目初始化完成'));

@@ -65,0 +69,0 @@ })

{
"name": "lovelope-react-cli",
"version": "0.0.5",
"version": "0.0.6",
"description": "A cli for react-starter.",

@@ -69,4 +69,5 @@ "bin": {

"semver": "^5.6.0",
"shelljs": "^0.8.3",
"validate-npm-package-name": "^3.0.0"
}
}
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