Skip to content

Commit

Permalink
Use node livereload server
Browse files Browse the repository at this point in the history
  • Loading branch information
baelter committed Oct 10, 2024
1 parent 66393ec commit 66999bc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 37 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ override CRYSTAL_FLAGS += --error-on-warnings --link-flags=-pie
.PHONY: livereload
livereload:
@echo "Starting livereload server..."
@(pid=$$!; trap 'kill -TERM $$pid' INT; crystal run views/_livereload.cr &)
@which livereload > /dev/null || npm install -g livereload
@(pid=$$!; trap 'kill -TERM $$pid' INT; livereload -w 2000 static &)

.PHONY: views
views: $(VIEW_TARGETS)
Expand Down
8 changes: 0 additions & 8 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ shards:
git: https://github.com/cloudamqp/amqp-client.cr.git
version: 1.2.7

inotify:
git: https://github.com/petoem/inotify.cr.git
version: 1.0.3

live_reload:
git: https://github.com/bcardiff/live_reload.cr.git
version: 0.1.0

lz4:
git: https://github.com/84codes/lz4.cr.git
version: 1.0.0+git.commit.96d714f7593c66ca7425872fd26c7b1286806d3d
Expand Down
5 changes: 0 additions & 5 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ dependencies:
development_dependencies:
ameba:
github: crystal-ameba/ameba
live_reload:
github: bcardiff/live_reload.cr
inotify:
github: petoem/inotify.cr
version: 1.0.3

crystal: 1.13.2

Expand Down
23 changes: 0 additions & 23 deletions views/_livereload.cr

This file was deleted.

0 comments on commit 66999bc

Please sign in to comment.