Mercurial > code > home > repos > streamed-graph
annotate tasks.py @ 110:3cdbbd913f1d
table displays now just barely
author | drewp@bigasterisk.com |
---|---|
date | Fri, 18 Mar 2022 23:41:24 -0700 |
parents | 5e6840229a05 |
children | 9a57f8c556d2 |
rev | line source |
---|---|
0 | 1 from invoke import task # pytype: disable=import-error |
2 | |
3 | |
4 @task | |
60 | 5 def setup_js(ctx): |
92
8db5ba7e12b9
pnpm install is slow & broken over nfs with a mismatching abspath
drewp@bigasterisk.com
parents:
90
diff
changeset
|
6 if 0: # only reasonable on bang,but dash tries to rebuild it |
8db5ba7e12b9
pnpm install is slow & broken over nfs with a mismatching abspath
drewp@bigasterisk.com
parents:
90
diff
changeset
|
7 ctx.run('pnpm install --dir=$PWD') |
0 | 8 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
9 @task(pre=[setup_js]) |
0 | 10 def serve_demo(ctx): |
35 | 11 ctx.run('webfsd -Fp 8021') |
0 | 12 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
13 @task(pre=[setup_js]) |
0 | 14 def build(ctx): |
60 | 15 ctx.run(f'pnpm run build', pty=True) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
16 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
17 @task(pre=[setup_js]) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
18 def build_forever(ctx): |
60 | 19 ctx.run(f'pnpm run build_forever', pty=True) |
9
26d3e4860adc
working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents:
0
diff
changeset
|
20 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
21 @task(pre=[setup_js]) |
9
26d3e4860adc
working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents:
0
diff
changeset
|
22 def test(ctx): |
60 | 23 ctx.run(f'pnpm run test', pty=True) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
24 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
25 @task(pre=[setup_js]) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
26 def test_forever(ctx): |
60 | 27 ctx.run(f'pnpm run test_forever', pty=True) |
90 | 28 |
29 @task | |
30 def release(ctx): | |
31 ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True) | |
108
5e6840229a05
rewrite freeStatements rendering to put more planning in layout
drewp@bigasterisk.com
parents:
92
diff
changeset
|
32 |
5e6840229a05
rewrite freeStatements rendering to put more planning in layout
drewp@bigasterisk.com
parents:
92
diff
changeset
|
33 @task |
5e6840229a05
rewrite freeStatements rendering to put more planning in layout
drewp@bigasterisk.com
parents:
92
diff
changeset
|
34 def dev(ctx): |
5e6840229a05
rewrite freeStatements rendering to put more planning in layout
drewp@bigasterisk.com
parents:
92
diff
changeset
|
35 ctx.run('pnpm dev') |