- commit
- 38c06d6ff610c468e394d2a83f895d8555bb146f
- parent
- 4773adbdfa16c0e4b72e7afc4260618d6866540a
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-10-16 14:24
rm livereload
Diffstat
| M | README.md | 6 | ------ |
| D | bin/watch.py | 31 | ------------------------------- |
| D | watch_requirements.txt | 1 | - |
3 files changed, 0 insertions, 38 deletions
diff --git a/README.md b/README.md
@@ -80,12 +80,6 @@ lines will bring it up: 80 80 $ open http://localhost:5000/ # introduction 81 81 $ open http://localhost:5000/my-topic/ # discuss on a topic 82 8283 -1 For development it may be nice to automatically restart the app and refresh the84 -1 browser whenever you make changes:85 -186 -1 $ pip install -r watch_requirements.txt87 -1 $ bin/watch.py88 -189 83 90 84 Development 91 85 -----------
diff --git a/bin/watch.py b/bin/watch.py
@@ -1,31 +0,0 @@1 -1 #!/usr/bin/env python2 -13 -1 # install dependencies via `pip install -r watch_requirements.txt`4 -1 # install browser extension from http://livereload.com/extensions/5 -16 -1 from __future__ import print_function7 -18 -1 from livereload import Server, shell9 -110 -1 UNCOMPILED_FILES = ['static/*.js', 'static/*.css', 'static/test/*', 'README.md']11 -1 JS_SRC_FILES = ['static/src/*.js']12 -1 CSS_SRC_FILES = ['static/scss/*.scss']13 -114 -1 server = Server()15 -116 -117 -1 def watch(file_set, shell_command=None, delay=None):18 -1 for path in file_set:19 -1 server.watch(path, shell_command, delay=delay)20 -121 -122 -1 def show(file_set):23 -1 map(print, file_set)24 -125 -126 -1 if __name__ == '__main__':27 -1 watch(JS_SRC_FILES, shell('make static/voterunner.js static/markdown.js'))28 -1 watch(CSS_SRC_FILES, shell('make static/style.css'))29 -1 watch(UNCOMPILED_FILES)30 -131 -1 server.serve(liveport=35729)
diff --git a/watch_requirements.txt b/watch_requirements.txt
@@ -1 +0,0 @@1 -1 livereload