maruko-cli
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,2 +5,3 @@ const fs = require('fs') | ||
const shell = require('shelljs'); | ||
const nameStyles = require('name-styles'); | ||
const cowsay = require('cowsay'); | ||
@@ -13,3 +14,5 @@ const config = require('../config') | ||
this.fileType = fileType; | ||
this.fileName = fileName; | ||
this.fileNameUpper = fileName.toUpperCase(); | ||
this.fileNameCap = nameStyles.pascal(fileName); | ||
this.fileName = nameStyles.hyphen(fileName); | ||
@@ -23,4 +26,5 @@ this.cmd = cmd; | ||
// 生成的文件队列 | ||
this.fileQueue = []; | ||
// 命令对应的 ITEM | ||
this.result = config.commandTypes.find(v => { | ||
@@ -30,6 +34,2 @@ return v.command === fileType || v.alias === fileType; | ||
const fileNameArr = [...fileName]; | ||
fileNameArr[0] = fileNameArr[0].toUpperCase(); | ||
this.fileNameCap = fileNameArr.join(''); | ||
this.fileNameUpper = fileName.toUpperCase(); | ||
} | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "maruko-cli", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -21,4 +21,5 @@ "main": "index.js", | ||
"inquirer": "^7.0.0", | ||
"name-styles": "^2.0.2", | ||
"shelljs": "^0.8.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12628
16
321
5
+ Addedname-styles@^2.0.2
+ Addedname-styles@2.2.0(transitive)