easy-flow

Easily use flow as part of watch tasks

Usage no npm install needed!

<script type="module">
  import easyFlow from 'https://cdn.skypack.dev/easy-flow';
</script>

README

Easy Flow

Easy Flow allows you to simply integrate Facebook's Flow with your task runners (like Gulp).

Install

npm install easy-flow

Sample task

var flow = require('easy-flow');

gulp.task('build', function (cb) {
  flow.check(cb); // passing the callback for gulp isn't necessary, but makes the output prettier
});

// or a watch task, which will utilize the Flow server
gulp.task('flow', function (cb) {
  flow.check(cb)
});

gulp.task('watch', function () {
  flow.watch();
  gulp.watch('./src/file.js', ['flow']);
});