https://github.com/hypery2k/tvml-kit-livereload
https://github.com/hypery2k/tvml-kit-livereload
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hypery2k/tvml-kit-livereload
- Owner: hypery2k
- License: mit
- Created: 2016-01-23T14:21:20.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-06-18T03:31:57.000Z (about 1 year ago)
- Last Synced: 2025-02-03T22:38:26.550Z (5 months ago)
- Language: JavaScript
- Size: 85.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TVML LiveReload
[](https://travis-ci.org/hypery2k/tvml-kit-livereload) [](http://badge.fury.io/js/tvml-kit-livereload) [](https://codeclimate.com/github/hypery2k/tvml-kit-livereload) [](https://codeclimate.com/github/hypery2k/tvml-kit-livereload) [](https://david-dm.org/hypery2k/tvml-kit-livereload) [](https://david-dm.org/hypery2k/tvml-kit-livereload#info=devDependencies)
> A simple livereload for TVML-based JavaScript-Apps on tvOS
[](https://nodei.co/npm/tvml-kit-livereload/)
> Feel free to **donate**
>
>![]()
>
>![]()
>
> Or donate [Bitcoins](bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D):
> [](bitcoin:3NKtxw1SRYgess5ev4Ri54GekoAgkR213D)
>
> Also via [greenaddress](https://greenaddress.it/pay/GA3ZPfh7As3Gc2oP6pQ1njxMij88u/)## 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](https://github.com/joshhunt). [His project](https://github.com/joshhunt/tvos-au-vod) was base for this.
## License
MIT, Copyright 2016 Martin Reinhardt