Mercurial > code > home > repos > streamed-graph
annotate tasks.py @ 90:6077fdc9ed44
inv release
author | drewp@bigasterisk.com |
---|---|
date | Wed, 12 Jan 2022 16:54:15 -0800 |
parents | f357cd36c26e |
children | 8db5ba7e12b9 |
rev | line source |
---|---|
0 | 1 from invoke import task # pytype: disable=import-error |
2 | |
3 | |
4 @task | |
60 | 5 def setup_js(ctx): |
6 ctx.run('pnpm install') | |
0 | 7 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
8 @task(pre=[setup_js]) |
0 | 9 def serve_demo(ctx): |
35 | 10 ctx.run('webfsd -Fp 8021') |
0 | 11 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
12 @task(pre=[setup_js]) |
0 | 13 def build(ctx): |
60 | 14 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
|
15 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
16 @task(pre=[setup_js]) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
17 def build_forever(ctx): |
60 | 18 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
|
19 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
20 @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
|
21 def test(ctx): |
60 | 22 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
|
23 |
68
f357cd36c26e
pnpm install is cheap; do it all the time
drewp@bigasterisk.com
parents:
60
diff
changeset
|
24 @task(pre=[setup_js]) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
25 def test_forever(ctx): |
60 | 26 ctx.run(f'pnpm run test_forever', pty=True) |
90 | 27 |
28 @task | |
29 def release(ctx): | |
30 ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True) |