Skip to content

Commit e6a0650

Browse files
author
Zeno Rocha
committed
Support skip-welcome-message option - Fixes #17
1 parent a91f2ec commit e6a0650

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ var yeoman = require('yeoman-generator');
77
var ElementGenerator = yeoman.generators.Base.extend({
88

99
init: function () {
10-
console.log(banner);
10+
if (!this.options['skip-install-message']) {
11+
this.log(banner);
12+
}
1113
},
1214

1315
askFor: function () {

repo/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ var yeoman = require('yeoman-generator');
77
var RepoGenerator = yeoman.generators.Base.extend({
88

99
init: function () {
10-
console.log(banner);
10+
if (!this.options['skip-install-message']) {
11+
this.log(banner);
12+
}
1113

1214
this.on('end', function () {
1315
if (!this.options['skip-install']) {

0 commit comments

Comments
 (0)