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.
38 lines (31 loc) • 911 B
JavaScript
'use strict';
var chalk = require('chalk'),
printTitle = require('../helpers/printTitle.js');
function customPrecssMixinsPrompt(self, cb){
if(self.cfg.preproOption === 'none'){
self.prompt([{
type: 'list',
name: 'customPreCssMixins',
message: 'What mixin plugin to use?',
choices: [{
name: 'None',
value: 'none',
checked: hasFeature('none', self.cfg.customPreCssMixins)
}, {
name: 'Mixins',
value: 'mixins',
checked: hasFeature('mixins', self.cfg.customPreCssMixins)
}, {
name: 'Sassy mixins',
value: 'sassymixins',
checked: hasFeature('sassymixins', self.cfg.customPreCssMixins)
}]
}], function(answers){
self.cfg.customPreCssMixins = answers.customPreCssMixins
cb();
}.bind(self));
} else {
cb();
}
}
module.exports = customPrecssMixinsPrompt;