0.2.1 • Published 8 years ago

starflow v0.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

What is Starflow?

Starflow provides some tools to automate the repetitive tasks you have to endure in your development workflow. These tasks can be as complex as you like as long as you can write them as javascript modules.

Documentation

Want to start using Starflow? Want to create plugins? Want to know how Starflow works internally? Have a question about the project? Then check out our Documentation page!

Example

Let's assume you want to automate the following tasks:

  • go to main git branch and update it
  • create a new branch and check out to it

Then the following file would do it for you:

// startDev.js

var starflow = require('starflow');

var args = process.argv.slice(2);
var steps = [
  {'$':                ['git', 'checkout', 'master']},
  {'$':                ['git', 'fetch', 'origin', 'master']},
  {'$':                ['git', 'rebase', 'origin/master', 'master']},
  {'git.createBranch': [args[0], true]} // create + checkout
];

var workflow = new starflow.Workflow(steps);
return workflow
  .addPlugin(require('starflow-shell'))
  .addPlugin(require('starflow-git'))
  .addAliases('$', 'shell.spawn')
  .run();

Then simply run node startDev.js my-feature-branch in your terminal.

Want to contribute?

Anyone can help us improve this project. Feel free to read our Contributing guide!

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago