Skip to content

Commit

Permalink
feat(generator): Update for index.js
Browse files Browse the repository at this point in the history
Rewrote a couple of descriptions and removed the option for choosing a
template for Jekyll. Trying to stay true to KISS.
  • Loading branch information
sondr3 committed Mar 7, 2014
1 parent e71ccb1 commit 4b9ae25
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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) {
Expand All @@ -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();

Expand Down

0 comments on commit 4b9ae25

Please sign in to comment.