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

@render-web/init

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@render-web/init - npm Package Compare versions

Package was removed
Sorry, it seems this package was removed from the registry
Comparing version
0.0.9
to
0.0.10
+33
-3
lib/index.js
'use strict';
const fs = require("fs");
const Command = require("@render-web/Command");
function index(name,cmd) {
console.log(name,cmd,process.env.CLI_TARGET_PATH)
class InitCommand extends Command {
init() {
console.log('init')
}
exec() {
this.prepare();
}
prepare() {
// 1.判断当前路径是否为空
if (!this.isCwdEmpty()) {
}
// 2.是否启动强制更新
// 3.选择创建项目还是组件
// 4.获取项目的基本信息
}
isCwdEmpty(){
const localPath = process.cwd();
console.log("localPath",localPath);
let fileList = fs.readdirSync(localPath);
console.log(fileList)
}
}
module.exports = index;
function init(argv) {
// console.log(name, cmd, process.env.CLI_TARGET_PATH)
return new InitCommand(argv);
}
module.exports = init;
module.exports.InitCommand = InitCommand;
+5
-2
{
"name": "@render-web/init",
"version": "0.0.9",
"version": "0.0.10",
"description": "> TODO: description",

@@ -26,3 +26,6 @@ "author": "不动声色 <1609059419@qq.com>",

},
"gitHead": "7a6a4ee4bef8d3187f551f87be39954c2db084cc"
"dependencies": {
"@render-web/Command": "file:../../models/Command"
},
"gitHead": "2fc8a9d59a4f6d850769c7e2302d5395b5113332"
}