|
@@ -7,8 +7,12 @@ def test(c):
|
|
|
"""Run all the provided tests"""
|
|
|
c.run("poetry run python -m pytest tests/*.py -W ignore::DeprecationWarning")
|
|
|
|
|
|
-
|
|
|
@task
|
|
|
+def webpack(c):
|
|
|
+ """Run the webpack build"""
|
|
|
+ c.run("yarn webpack")
|
|
|
+
|
|
|
+@task(webpack)
|
|
|
def run(c, port=8080, host="127.0.0.1"):
|
|
|
"""Run a debug server locally"""
|
|
|
c.run(
|
|
@@ -92,7 +96,7 @@ def lint(c):
|
|
|
c.run("poetry run flake8")
|
|
|
|
|
|
|
|
|
-@task
|
|
|
+@task(webpack)
|
|
|
def uwsgi(c, sock="lc.sock"):
|
|
|
"""Run a uwsgi server"""
|
|
|
c.run(
|