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

Move the ascii art and explanation to yeoman:app. Addresses issue #89 #92

Merged
merged 1 commit into from
Oct 12, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/generators/yeoman/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ AppGenerator.prototype.askFor = function askFor (argument) {
var cb = this.async(),
self = this;


// Welcome message
var welcome =
'\n _-----_' +
'\n | |' +
'\n |'+'--(o)--'.red+'| .--------------------------.' +
'\n `---------´ | '+'Welcome to Yeoman,'.yellow.bold+' |' +
'\n '+'( '.yellow+'_'+'´U`'.yellow+'_'+' )'.yellow+' | '+'ladies and gentlemen!'.yellow.bold+' |' +
'\n /___A___\\ \'__________________________\'' +
'\n | ~ |'.yellow +
'\n __'+'\'.___.\''.yellow+'__' +
'\n ´ '+'` |'.red+'° '+'´ Y'.red+' `\n';

console.log(welcome);
console.log('Out of the box I include HTML5 Boilerplate, jQuery and Modernizr.');

// a bit verbose prompt configuration, maybe we can improve that
// demonstration purpose. Also, probably better to have this in other generator, whose responsability is to ask
// and fetch all realated bootstrap stuff, that we hook from this generator.
Expand Down