Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to '.' for 'current folder' #151

Merged
merged 1 commit into from
Mar 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 6 additions & 7 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = generators.Base.extend({
this.option('root-path', {
type: String,
desc: 'Relative path where the project should be created (blank = current directory)',
default: '.',
required: false
});

Expand All @@ -41,13 +40,13 @@ module.exports = generators.Base.extend({
desc: 'Office client product that can host the add-in',
required: false
});

this.option('extensionPoint', {
type: String,
desc: 'Supported extension points',
required: false
});

this.option('appId', {
type: String,
desc: 'Application ID as registered in Azure AD',
Expand Down Expand Up @@ -97,9 +96,9 @@ module.exports = generators.Base.extend({
+ ' from current (src / public): ',
default: 'current folder',
when: this.options['root-path'] === undefined,
filter: /* istanbul ignore next */ function(response){
filter: /* istanbul ignore next */ function (response) {
if (response === 'current folder') {
return '';
return '.';
} else {
return response;
}
Expand Down Expand Up @@ -155,7 +154,7 @@ module.exports = generators.Base.extend({
}.bind(this));

}, // askFor()

askForAdalConfig: function(){
// if it's not an ADAL app, don't ask the questions
if (this.genConfig.tech !== 'ng-adal') {
Expand Down Expand Up @@ -264,7 +263,7 @@ module.exports = generators.Base.extend({
name: this.genConfig.name,
'root-path': this.genConfig['root-path'],
tech: this.genConfig.tech,
appId: this.genConfig.appId,
appId: this.genConfig.appId,
clients: this.genConfig.clients,
'skip-install': this.options['skip-install']
}
Expand Down