Mercurial > code > home > repos > streamed-graph
comparison tasks.py @ 31:e54941d93356
mostly config fixes to try to make this pkg usable by others (not working yet)
author | drewp@bigasterisk.com |
---|---|
date | Tue, 17 Dec 2019 23:13:01 -0800 |
parents | 45ed53428e74 |
children | b82c05e22d9a |
comparison
equal
deleted
inserted
replaced
30:2d88804484e5 | 31:e54941d93356 |
---|---|
9 def serve_demo(ctx): | 9 def serve_demo(ctx): |
10 ctx.run('yarn webpack-dev-server') | 10 ctx.run('yarn webpack-dev-server') |
11 | 11 |
12 @task | 12 @task |
13 def build(ctx): | 13 def build(ctx): |
14 ctx.run(f'yarn run webpack-build') # --debug --display-error-details | 14 ctx.run(f'yarn run webpack-build', pty=True) # --debug --display-error-details |
15 ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') | 15 ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') |
16 ctx.run(f'cp src/streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css') | 16 ctx.run(f'cp src/streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css') |
17 | 17 |
18 @task | 18 @task |
19 def build_forever(ctx): | 19 def build_forever(ctx): |
20 ctx.run(f'yarn run webpack-build-forever') | 20 ctx.run(f'yarn run webpack-build-forever', pty=True) |
21 | 21 |
22 @task | 22 @task |
23 def dev_server(ctx): | 23 def dev_server(ctx): |
24 ctx.run(f'yarn webpack-dev-server') | 24 ctx.run(f'yarn webpack-dev-server', pty=True) |
25 | 25 |
26 @task | 26 @task |
27 def test(ctx): | 27 def test(ctx): |
28 ctx.run(f'yarn test', pty=True) | 28 ctx.run(f'yarn test', pty=True) |
29 | 29 |