generator-robonkey
Version:
A Yeoman generator for Gulp, Templating, CSS Preprocessors, Coffeescript, PostCSS, Modernizr, svg icons/icon font generator, BrowserSync, and some libraries to choose from. Express, Wordpress, Drupal, CodeIgniter, Laravel subgenerators are available.
42 lines (35 loc) • 1.04 kB
JavaScript
'use strict';
var chalk = require('chalk'),
printTitle = require('../helpers/printTitle.js');
function customPrecssGridsPrompt(self, cb){
if(self.cfg.preproOption === 'none' || self.cfg.preproOption === 'precss'){
self.prompt([{
type: 'list',
name: 'customPreCssGrids',
message: 'What grid plugin to use?',
choices: [{
name: 'None',
value: 'none',
checked: hasFeature('none', self.cfg.customPreCssGrids)
}, {
name: 'Grid',
value: 'grid',
checked: hasFeature('grid', self.cfg.customPreCssGrids)
}, {
name: 'Lost Grid',
value: 'lostgrid',
checked: hasFeature('lostgrid', self.cfg.customPreCssGrids)
}, {
name: 'Neat',
value: 'neat',
checked: hasFeature('neat', self.cfg.customPreCssGrids)
}]
}], function(answers){
self.cfg.customPreCssGrids = answers.customPreCssGrids
cb();
}.bind(self));
} else {
cb();
}
}
module.exports = customPrecssGridsPrompt;