hypery2k / tvml-kit-livereload

MIT License
2 stars 0 forks source link

TVML LiveReload

Build Status npm version Code Climate Issue Count Dependency Status devDependency Status

A simple livereload for TVML-based JavaScript-Apps on tvOS

NPM

Feel free to donate

Click here to lend your support to: NPM packages and make a donation at pledgie.com !

Or donate Bitcoins: Bitcoin

Also via greenaddress

Installation

npm install tvml-kit-livereload --save-dev

Or if you want to use the development version (nightly build), which maybe not stable!:

npm install tvml-kit-livereload@next --save-dev

Usage

Mainly used for integration in other Tools, like Grunt or WebPack

var port = 9000;
var livereload = require('tvml-kit-livereload');
// start server
livereload.start(9000, function(io){
  // add reload function in app
  var updateAppJS = livereload.prepareApplicationJS(__dirname + '/application.js');
  write updated application.js back
  // bind reload, e.g. in WebPack or watch
  livereload.reload();
});

Thanks

Thanks to joshhunt. His project was base for this.

License

MIT, Copyright 2016 Martin Reinhardt