mklabs / make-livereload

Livereload target for Make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make-livereload

Livereload target for Make

Installation

$ npm install --save-dev make-livereload

Example

include node_modules/make-livereload/index.mk

Specify the source, defaulting to *.js *.css in the current directory.

LIVERELOAD_DIR = ./
LIVERELOAD_SRC = $(shell find $(LIVERELOAD_DIR) -name '*.css' -o -name '*.js')
include node_modules/make-livereload/index.mk

Run the livereload server:

$ make livereload

Then run the reload target with watch (consider using visionmedia's watch)

$ watch make reload

Stop it with

$ make livereload-stop

License

MIT

About

Livereload target for Make


Languages

Language:JavaScript 57.5%Language:Makefile 27.5%Language:HTML 14.1%Language:CSS 0.9%