Browse Source

Add webpack build to tasks

Getty Ritter 1 year ago
parent
commit
6eb65678f2
1 changed files with 6 additions and 2 deletions
  1. 6 2
      tasks.py

+ 6 - 2
tasks.py

@@ -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(