comparison service/wifi/tasks.py @ 683:50d66febeeb0

build cleanup and reformats Ignore-this: dcb2bb4a86eee1a298c644e0f81a7d0d
author drewp@bigasterisk.com
date Mon, 06 Jan 2020 23:47:30 -0800
parents f424809cba8d
children 632a88c27b11
comparison
equal deleted inserted replaced
682:90bb6287b31b 683:50d66febeeb0
2 2
3 JOB = 'wifi' 3 JOB = 'wifi'
4 PORT = 9070 4 PORT = 9070
5 TAG = f'bang6:5000/{JOB}_x86:latest' 5 TAG = f'bang6:5000/{JOB}_x86:latest'
6 6
7
7 @task 8 @task
9 def build(ctx):
10 ctx.run(f'npm run build', pty=True)
11
12 @task(pre=[build])
8 def build_image(ctx): 13 def build_image(ctx):
9 ctx.run(f'docker build --network=host -t {TAG} .') 14 ctx.run(f'docker build --network=host -t {TAG} .')
10 15
11 @task(pre=[build_image]) 16 @task(pre=[build_image])
12 def push_image(ctx): 17 def push_image(ctx):
30 # and for vscode: 35 # and for vscode:
31 # yarn pnpify --sdk 36 # yarn pnpify --sdk
32 # then pick the pnp one on statusbar. 37 # then pick the pnp one on statusbar.
33 38
34 #yarn run webpack-cli --config webpack.config.js --mode production 39 #yarn run webpack-cli --config webpack.config.js --mode production
35
36
37 @task
38 def build(ctx):
39 ctx.run(f'npm run webpack-build', pty=True)
40
41 @task
42 def serve_demo(ctx):
43 ctx.run('npm run webpack-dev-server')