@cabloy/cli 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,6 +58,7 @@ export declare class LocalHelper {
58
58
  newChalk(options?: any): Chalk.Chalk;
59
59
  newTable(options: TableConstructorOptions): TableClass.Table;
60
60
  boxen({ text, options }: any): string;
61
+ firstCharToCapitalize(name: string): string;
61
62
  relativeNameToCapitalize(moduleName: string): string;
62
63
  parseModuleInfo(moduleName: any): ModuleInfo.IModuleInfo;
63
64
  findModule(moduleName: any): ModuleInfo.IModule;
@@ -78,11 +78,14 @@ class LocalHelper {
78
78
  }
79
79
  return (0, boxen_1.default)(text, options);
80
80
  }
81
+ firstCharToCapitalize(name) {
82
+ return name.charAt(0).toUpperCase() + name.substring(1);
83
+ }
81
84
  relativeNameToCapitalize(moduleName) {
82
85
  return moduleName
83
86
  .split('-')
84
87
  .map(name => {
85
- return name.charAt(0).toUpperCase() + name.substring(1);
88
+ return this.firstCharToCapitalize(name);
86
89
  })
87
90
  .join('');
88
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "cabloy cli",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -41,12 +41,12 @@
41
41
  "fs-extra": "^10.1.0",
42
42
  "gogocode": "^1.0.53",
43
43
  "istextorbinary": "^3.3.0",
44
- "@cabloy/cli-set-api": "^1.0.1",
45
- "@cabloy/cli-set-front": "^1.0.2",
46
- "@cabloy/process-helper": "^1.0.1",
44
+ "@cabloy/cli-set-front": "^1.0.4",
47
45
  "@cabloy/module-glob": "^5.0.3",
48
- "@cabloy/cli-set-core": "^1.0.1",
49
- "@cabloy/module-info": "^1.0.10"
46
+ "@cabloy/module-info": "^1.0.10",
47
+ "@cabloy/process-helper": "^1.0.1",
48
+ "@cabloy/cli-set-api": "^1.0.2",
49
+ "@cabloy/cli-set-core": "^1.0.1"
50
50
  },
51
51
  "scripts": {
52
52
  "lint": "eslint ."