Comparing version 0.0.1 to 0.0.2
17
cli.js
@@ -44,3 +44,3 @@ #!/usr/bin/env node | ||
if (!args.length) { | ||
return 'react-simple'; | ||
return 'react'; | ||
} | ||
@@ -52,14 +52,9 @@ | ||
const main = () => { | ||
switch(getEnv()) { | ||
case 'react-simple': | ||
copy_dir($path.resolve(__dirname, 'react-simple'), './react-simple'); | ||
console.log('enjoy it!'); break; | ||
case 'react-electron': | ||
copy_dir($path.resolve(__dirname, 'react-electron'), './react-electron'); | ||
console.log('enjoy it!'); break; | ||
default: | ||
console.log('invalid template name'); | ||
} | ||
const template = getEnv() + '-sample'; | ||
copy_dir($path.resolve(__dirname, 'templates', template), `./${template}`, () => { | ||
console.log('Invalid template name'); | ||
}); | ||
}; | ||
main(); |
{ | ||
"name": "coinit", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "bin": "cli.js", |
# coinit | ||
# coinit | ||
## Usage: | ||
~~~ | ||
coinit // 创建 react 基础环境,当前目录下生成一个 react-sample 目录 | ||
coinit react-redux // 创建 react-redux 基础环境,当前目录下生成一个 react-redux-sample 目录 | ||
coinit react-electron // 创建 react-electron 基础环境,当前目录下生成一个 react-electron-sample 目录 | ||
~~~ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13052
26
242
11
1
4