Skip to content

eoinmurray/lorentz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lorentz.js

Watches for client side file changes and reloads the browser.

    npm install lorentz

Server side.

	var lorentz = require('lorentz')
	lorentz.liveReload(__dirname[, port]) // defaults to 8081

Client-side.

	<script src="http://localhost:8081/lorentz.js"></script>

Specify the files you want to watch in a .lorentzwatch file.

	public/
	app.js
	index.html

Todo

  1. Make such that a cli version of lorentz can be run from any dir, and will support any language set up then.

About

refresh browser on file changes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published