From 4b9ae25037cbf8d6d0f46f7ce9065cbf9c47641f Mon Sep 17 00:00:00 2001 From: Sondre Nilsen Date: Fri, 7 Mar 2014 23:33:15 +0100 Subject: [PATCH] feat(generator): Update for index.js Rewrote a couple of descriptions and removed the option for choosing a template for Jekyll. Trying to stay true to KISS. --- app/index.js | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/app/index.js b/app/index.js index 84e642b..ef55743 100755 --- a/app/index.js +++ b/app/index.js @@ -138,8 +138,7 @@ JekyllizeGenerator.prototype.askForStructure = function askForStructure() { }; console.log(chalk.yellow - ('\nConfigure the asset structure.') + ' ☛' + - '\nSee note about nested directories in the README.'); + ('\nConfigure the asset structure. ☛'); this.prompt([{ name: 'cssDirectory', @@ -163,7 +162,7 @@ JekyllizeGenerator.prototype.askForStructure = function askForStructure() { filter: slashFilter }, { name: 'cssPreprocessorDirectory', - message: 'CSS Preprocessor directory', + message: 'SASS directory', default: '/assets/_scss', filter: slashFilter, }], function (props) { @@ -178,31 +177,6 @@ JekyllizeGenerator.prototype.askForStructure = function askForStructure() { }.bind(this)); } -JekyllizeGenerator.prototype.askForTemplate = function askForTemplate() { - var cb = this.async(); - - console.log(chalk.yellow('\nChoose a template to use for Jekyll.') + ' ☛'); - - this.prompt([{ - name: 'templateName', - type: 'list', - message: 'What template do you want to use?', - choices: ['Jekyll', 'H5BP', 'None'] - }], function (props) { - if (props.templateName === 'Jekyll') { - this.templateName = 'jekyll'; - } - else if (props.templateName === 'H5BP') { - this.templateName = 'h5bp'; - } - else if (props.templateName === 'None') { - this.templateName = 'none'; - } - - cb(); - }.bind(this)); -} - JekyllizeGenerator.prototype.askForJekyll = function askForJekyll() { var cb = this.async();