slush-productive
v0.1.2
Published
Slush abstraction focusing on productivity
Downloads
1
Maintainers
Readme
Slush Productive
Slush abstraction focusing on productivity
Instalation
npm install slush-productive gulp
Usage
'use strict';
var questions = [{
type: 'input',
name: 'name',
message: 'Project name',
validator: 'notEmpty'
}];
var tasks = [
function logs(answers, callback) {
console.log(answers);
callback();
},
function anotherTask(answers, callback) {
....
}
];
function answersParse(answers) {
ansewers.name = "X - " + answers.name;
return answers;
}
var slush = require('slush-productive')({
questions: questions,
tasks: tasks,
answers: answersParse
});