Guardfile 323 B

12345678910111213
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from livereload.task import Task
  4. import json
  5. import subprocess
  6. def f():
  7. subprocess.call(("nikola", "build"))
  8. fdata = json.loads('''["conf.py", "themes", "templates", "galleries", "posts", "posts", "stories", "stories", ""]''')
  9. for watch in fdata:
  10. Task.add(watch, f)