Skip to content

Commit

Permalink
Add message for successful project creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nporteschaikin committed Jan 7, 2015
1 parent 2cdd415 commit c38e050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Commands.prototype = {
.on('done', this.doneEvent.bind(this))
.on('start', this.startEvent.bind(this))
.on('finish', this.finishEvent.bind(this))
.on('sync', this.syncEvent.bind(this))
if (this.process) this.process.on('SIGINT', this.exit.bind(this));
},

Expand All @@ -85,6 +86,10 @@ Commands.prototype = {

finishEvent: function (action) {
this.write(('finished '.bold + String(action) + '!').green + '\n');
},

syncEvent: function (action) {
this.write((String(action) + '!').green.bold + '\n');
}

}
Expand Down
2 changes: 1 addition & 1 deletion lib/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Generator.prototype = {
},

emit: function () {
this.emitter.emit('misc', 'created', this.peak.path);
this.emitter.emit('sync', 'created project at ' + this.peak.path);
}

}
Expand Down

0 comments on commit c38e050

Please sign in to comment.