diff service/wifi/tasks.py @ 1484:e188fd8351c0

build cleanup and reformats Ignore-this: dcb2bb4a86eee1a298c644e0f81a7d0d darcs-hash:336acbaea2737a508bc9cfcfaaac3c3671835504
author drewp <drewp@bigasterisk.com>
date Mon, 06 Jan 2020 23:47:30 -0800
parents 4bbc68603168
children 5517f54eaba8
line wrap: on
line diff
--- a/service/wifi/tasks.py	Mon Jan 06 23:47:05 2020 -0800
+++ b/service/wifi/tasks.py	Mon Jan 06 23:47:30 2020 -0800
@@ -4,7 +4,12 @@
 PORT = 9070
 TAG = f'bang6:5000/{JOB}_x86:latest'
 
+
 @task
+def build(ctx):
+    ctx.run(f'npm run build', pty=True)
+    
+@task(pre=[build])
 def build_image(ctx):
     ctx.run(f'docker build --network=host -t {TAG} .')
 
@@ -32,12 +37,3 @@
 #   then pick the pnp one on statusbar.
 
 #yarn run webpack-cli --config webpack.config.js --mode production
-
-
-@task
-def build(ctx):
-    ctx.run(f'npm run webpack-build', pty=True)
-    
-@task
-def serve_demo(ctx):
-    ctx.run('npm run webpack-dev-server')