Skip to content

Instantly share code, notes, and snippets.

View matteo-bombelli's full-sized avatar

Matteo Bombelli matteo-bombelli

View GitHub Profile
@matteo-bombelli
matteo-bombelli / index.js
Last active September 26, 2016 00:24
Yeoman generator nested prompt not working...
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
module.exports = yeoman.Base.extend({
prompting: function () {
// Have Yeoman greet the user.
this.log(yosay(
'Welcome to the amazing ' + chalk.red('generator-try-mb') + ' generator!'
@matteo-bombelli
matteo-bombelli / index.js
Created September 26, 2016 00:24
Hacky solution: Yeoman generator nested prompt...
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
module.exports = yeoman.Base.extend({
prompting: function () {
// Have Yeoman greet the user.
this.log(yosay(
'Welcome to the amazing ' + chalk.red('generator-try-mb') + ' generator!'

After a simple discussion on twitter I've taken what I've always done to try to improve legibility:

std code:

const data = {
    a: "something",
    b: "something else",
    c: "others"