Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.47 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.47 KB

Starflow

Automate your development workflows - npm install starflow

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!