-
-
Notifications
You must be signed in to change notification settings - Fork 157
Implementing --appPath option to scaffold into custom directory #181
Conversation
I understand what's being done with |
That's mainly for sub generators. On Sunday, 8 December 2013, Addy Osmani wrote:
with regards, markdownblogger.herokuapp.com www.phprepo.in http://twitter.com/revathskumar http://www.linkedin.com/in/revathskumar |
this.appPath = 'app'; | ||
if (this.options.appPath) { | ||
this.appPath = this.options.appPath; | ||
this.config.set('appPath', this.options.appPath); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.appPath = this.options.appPath || this.appPath;
instead of lines 15 and 17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@addyosmani Now when Currently we are not using prompts for sub-generators. I was working on saving other options to |
@@ -2,3 +2,6 @@ language: node_js | |||
node_js: | |||
- '0.10' | |||
- '0.8' | |||
cache: | |||
directories: | |||
- node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is moot. caching is only available for private instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok will remove the commit.
Helps user to scaffold application into custom directory instead of "app" `yo backbone --appPath=public` This will scaffold application into "public" directory. https://twitter.com/jayjog/status/399971817646874624
Implementing --appPath option to scaffold into custom directory
Helps user to scaffold application into custom directory instead of "app"
yo backbone --appPath=public
This will scaffold application into public directory.
This uses
.yo-rc.json
for storing appPath config.https://twitter.com/jayjog/status/399971817646874624