voterunner

quick and dirty votes and discussions
git clone https://git.ce9e.org/voterunner.git

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    82 
   83    -1 For development it may be nice to automatically restart the app and refresh the
   84    -1 browser whenever you make changes:
   85    -1 
   86    -1     $ pip install -r watch_requirements.txt
   87    -1     $ bin/watch.py
   88    -1 
   89    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 python
    2    -1 
    3    -1 # install dependencies via `pip install -r watch_requirements.txt`
    4    -1 # install browser extension from http://livereload.com/extensions/
    5    -1 
    6    -1 from __future__ import print_function
    7    -1 
    8    -1 from livereload import Server, shell
    9    -1 
   10    -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    -1 
   14    -1 server = Server()
   15    -1 
   16    -1 
   17    -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    -1 
   21    -1 
   22    -1 def show(file_set):
   23    -1     map(print, file_set)
   24    -1 
   25    -1 
   26    -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    -1 
   31    -1     server.serve(liveport=35729)

diff --git a/watch_requirements.txt b/watch_requirements.txt

@@ -1 +0,0 @@
    1    -1 livereload