prg-projectator
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "prg-projectator", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "project-development boost utility", | ||
@@ -15,5 +15,6 @@ "bin": { | ||
"dependencies": { | ||
"commander": "^2.9.0", | ||
"commander": "^2.11.0", | ||
"fs-extra": "^2.0.0", | ||
"fs-walk": "0.0.1", | ||
"glob": "^7.1.2", | ||
"handlebars": "^4.0.6", | ||
@@ -24,2 +25,3 @@ "mongodb": "^2.2.24", | ||
"devDependencies": { | ||
"botnaut": "^0.22.0", | ||
"eslint": "^3.10.2", | ||
@@ -29,4 +31,5 @@ "eslint-config-airbnb": "^13.0.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.7.1" | ||
"eslint-plugin-react": "^6.7.1", | ||
"mocha": "^3.5.0" | ||
} | ||
} |
@@ -21,3 +21,8 @@ 'use strict'; | ||
get namePlural () { | ||
return `${this.name}s`; | ||
if (/y$/.test(this.name)) { // category -> categories | ||
return `${this.name.slice(0, -1)}ies`; | ||
} | ||
return `${this.name}s`; // product -> products | ||
} | ||
@@ -90,3 +95,3 @@ | ||
this.name = name; | ||
this.name = name.substr(0, 1).toLowerCase() + name.substr(1); | ||
@@ -93,0 +98,0 @@ this._properties = new Map(); |
@@ -9,4 +9,2 @@ 'use strict'; | ||
const description = 'Generate model, API, frontend and tests for an entity based on apiBlueprint.apib file and the code templates in /generatorTemplates path.'; | ||
/** | ||
@@ -18,4 +16,5 @@ * @param {Command} program | ||
program | ||
.command('generate [name]', description, { isDefault: false }) | ||
.action((command, name) => { | ||
.command('generate [name]') | ||
.description('Generate model, API, frontend and tests for an entity based on apiBlueprint.apib file and the code templates in /generatorTemplates path.') | ||
.action((name) => { | ||
@@ -22,0 +21,0 @@ const projectDir = process.cwd(); |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
62280
29
538
1
2
7
7
6
+ Addedglob@^7.1.2
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)
Updatedcommander@^2.11.0