Skip to content

Commit

Permalink
CLI formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
logeshpaul committed Apr 1, 2015
1 parent 590124d commit 2ae3c2a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ smacssGenerator.prototype.initializing = function initializing() {
smacssGenerator.prototype.welcome = function welcome() {
if (!this.options['skip-welcome-message']) {
this.log(yosay('Yo! Welcome to SMACSS'));
this.log(chalk.magenta.bold('You\'re using the perfectionist generator for frontend.'));
this.log(chalk.gray('================================================================'));
this.log(chalk.gray('Answer simple questions to kick start your project'));
this.log(chalk.yellow('┌──────────────────────────────────────────────────────────────┐'));
this.log(chalk.yellow('| Answer simple questions to kick start your project |'));
this.log(chalk.yellow('└──────────────────────────────────────────────────────────────┘'));
}
};

Expand Down Expand Up @@ -183,8 +183,8 @@ smacssGenerator.prototype.askAngularModules = function askAngularModules() {
};

smacssGenerator.prototype.scaffoldFolders = function scaffoldFolders() {
this.log(chalk.gray('================================================================'));
this.log(chalk.gray('Creating the project structure'));
this.log(chalk.gray('────────────────────────────────────────────────────────────────'));
this.log(chalk.yellow('Creating the project structure'));

// Common Scaffolding for all projets
this.mkdir(this.appName + '/app');
Expand Down Expand Up @@ -304,7 +304,7 @@ smacssGenerator.prototype.install = function install() {

// Skip Install
if (this.options['skip-install']) {
this.log(chalk.gray('================================================================'));
this.log(chalk.gray('────────────────────────────────────────────────────────────────'));
this.log(chalk.gray('Follow the instructions below'));

if(this.appType === 'typeSimpleWebApp') {
Expand All @@ -325,8 +325,9 @@ smacssGenerator.prototype.install = function install() {
}
}
else {
this.log(chalk.gray('================================================================'));
this.log(chalk.gray('Installing Dependencies, please wait...'));
this.log(chalk.gray('Project structure created successfully!'));
this.log(chalk.gray('────────────────────────────────────────────────────────────────'));
this.log(chalk.yellow('Installing Dependencies, please wait...'));

this.on('end', function () {
this.installDependencies({
Expand All @@ -339,8 +340,9 @@ smacssGenerator.prototype.install = function install() {
});

this.on('dependenciesInstalled', function() {
this.log(chalk.gray('================================================================'));
this.log(chalk.gray('Dependencies Installed, please wait we start the server...'));
this.log(chalk.gray('Dependencies installed successfully!'));
this.log(chalk.gray('────────────────────────────────────────────────────────────────'));
this.log(chalk.yellow('Please wait while we start the server...'));

shell.cd(installContext.appPath);
shell.exec('gulp'); // trigger the server using gulp command
Expand Down

0 comments on commit 2ae3c2a

Please sign in to comment.