Skip to content

Instantly share code, notes, and snippets.

@bmustiata
Last active October 1, 2015 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmustiata/07291b31c0752a308972 to your computer and use it in GitHub Desktop.
Save bmustiata/07291b31c0752a308972 to your computer and use it in GitHub Desktop.

Running dot rendering when foo.dot changes.

fast-live-reload

fast-live-reload -o\
  foo.dot -e "dot -Tpng -o foo.png foo.dot"

Gulp

var gulp = require("gulp");
var shell = require("gulp-shell");

gulp.task("watch", function () {
    gulp.watch("foo.dot", shell.task(["dot -Tpng -o foo.png foo.dot"]));
});

Running commands when files change, with a parallel program.

  1. Start in parallel the tsc watcher.
  2. When files change in either test/ or lib/ run mocha test/test_promise.js.

fast-live-reload

fast-live-reload -o\
  -ep "tsc -w src/main/node/exports.ts --out lib/core-promise.js" \
  test/ lib/ -e "mocha test/test_promise.js"

Gulp

//?

Run compass watch, and copy files.

  1. Run "compass watch" in parallel.
  2. Proxy http://192.168.0.14/ and inject the reload script
  3. When files change in src/ , run "grunt sync" then notify the server.

fast-live-reload

fast-live-reload \
  -ep "compass watch" \
  -s http://192.168.0.14/ \
  src -e "grunt sync"

Gulp

//?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment