Skip to content

Commit

Permalink
Merge pull request #13 from petermuessig/fix-yosay
Browse files Browse the repository at this point in the history
Avoid yosay when generator runs embedded
  • Loading branch information
petermuessig authored Apr 5, 2021
2 parents d3d3ee8 + f11cec9 commit 9ea0cd8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ module.exports = class extends Generator {

prompting() {
// Have Yeoman greet the user.
this.log(
yosay(`Welcome to the ${chalk.red("generator-ui5-library")} generator!`)
);
if (!this.options.embedded) {
this.log(
yosay(`Welcome to the ${chalk.red("generator-ui5-library")} generator!`)
);
}

const prompts = [
{
Expand Down

0 comments on commit 9ea0cd8

Please sign in to comment.