Skip to content

Commit

Permalink
Make sendgrid key optional fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
diegohaz committed Oct 23, 2016
1 parent 680a2be commit 17107d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = yeoman.Base.extend({
}, {
type: 'confirm',
name: 'https',
message: 'Do you to force SSL in production mode?',
message: 'Do you want to force SSL in production mode?',
default: false
}, {
type: 'confirm',
Expand Down Expand Up @@ -66,7 +66,8 @@ module.exports = yeoman.Base.extend({
}, {
type: 'input',
name: 'sendgridKey',
message: 'What\'s your SendGrid API Key (how to get one: https://sendgrid.com/docs/Classroom/Send/How_Emails_Are_Sent/api_keys.html)?',
message: 'What\'s your SendGrid API Key (you can skip this and update the .env file later)?',
default: 'key',
when: function (props) {
return props.passwordReset;
}
Expand Down
3 changes: 1 addition & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ describe('generator-rest', function () {
before(function (done) {
install({
https: true,
passwordReset: true,
sendgridKey: 'sendgridKey'
passwordReset: true
}, done);
});
it('should install and pass tests', function () {});
Expand Down

0 comments on commit 17107d2

Please sign in to comment.