generator-nestjs-app
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -20,3 +20,3 @@ const path = require('path') | ||
initializing() { | ||
this.log(yosay(`Welcome to the ${chalk.bgRed.white.bold("NESTJS Generator!")} \n Let's scaffold a new ${chalk.bgRed.white('NESTJS APP')}`)) | ||
this.log(yosay(`Welcome to the \n ${chalk.bgRed.white.bold("NESTJS Generator!")} \n Let's scaffold a new ${chalk.bgRed.white('NESTJS APP')}`)) | ||
} | ||
@@ -66,9 +66,7 @@ | ||
this.log(chalk.bgWhite.red(` | ||
Name: ${this.appConfig.name} | ||
Identifier: ${this.appConfig.identifier} | ||
Description: ${this.appConfig.description} | ||
Publisher: ${this.appConfig.publisher} | ||
Type: ${appTypes.find(type => type.value === this.appConfig.type).name} | ||
`)) | ||
Name: ${this.appConfig.name} | ||
Identifier: ${this.appConfig.identifier} | ||
Description: ${this.appConfig.description} | ||
Publisher: ${this.appConfig.publisher} | ||
Type: ${appTypes.find(type => type.value === this.appConfig.type).name} `)) | ||
}) | ||
@@ -99,17 +97,16 @@ } | ||
} else { | ||
this.installDependencies({ | ||
npm: this.options['npm'], | ||
yarn: this.options['yarn'] | ||
}).then(() => { | ||
this.log(chalk.green(` | ||
Ready to rubmle.... | ||
`)) | ||
}).catch(() => { | ||
this.log(chalk.green(` | ||
Could not install dependencies, to install them later, run | ||
if (this.options['yarn']) { | ||
this.installDependencies({ | ||
yarn: true, | ||
bower: false, | ||
npm: false, | ||
}) | ||
} else { | ||
this.installDependencies({ | ||
npm: true, | ||
yarn: false, | ||
bower: false, | ||
}) | ||
${chalk.white('$')} cd ${this.appConfig.identifier}/ | ||
${chalk.white('$')} npm install | ||
`)) | ||
}) | ||
} | ||
} | ||
@@ -116,0 +113,0 @@ } |
{ | ||
"name": "generator-nestjs-app", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A yeoman generator for nestjs apps", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
352006
10630