slush-productive

0.1.2 • Public • Published

Slush Productive

Dependency Status

NPM

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
});

Package Sidebar

Install

npm i slush-productive

Weekly Downloads

1

Version

0.1.2

License

none

Last publish

Collaborators

  • brunobertolini