annotate tasks.py @ 90:6077fdc9ed44

inv release
author drewp@bigasterisk.com
date Wed, 12 Jan 2022 16:54:15 -0800
parents f357cd36c26e
children 8db5ba7e12b9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
drewp@localhost
parents:
diff changeset
1 from invoke import task # pytype: disable=import-error
drewp@localhost
parents:
diff changeset
2
drewp@localhost
parents:
diff changeset
3
drewp@localhost
parents:
diff changeset
4 @task
60
0d0638bd98be use pnpm
drewp@bigasterisk.com
parents: 50
diff changeset
5 def setup_js(ctx):
0d0638bd98be use pnpm
drewp@bigasterisk.com
parents: 50
diff changeset
6 ctx.run('pnpm install')
0
drewp@localhost
parents:
diff changeset
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
drewp@localhost
parents:
diff changeset
9 def serve_demo(ctx):
35
29d8ed02a275 build and tests, including jsonld
drewp@bigasterisk.com
parents: 33
diff changeset
10 ctx.run('webfsd -Fp 8021')
0
drewp@localhost
parents:
diff changeset
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
drewp@localhost
parents:
diff changeset
13 def build(ctx):
60
0d0638bd98be use pnpm
drewp@bigasterisk.com
parents: 50
diff changeset
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
0d0638bd98be use pnpm
drewp@bigasterisk.com
parents: 50
diff changeset
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
0d0638bd98be use pnpm
drewp@bigasterisk.com
parents: 50
diff changeset
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
0d0638bd98be use pnpm
drewp@bigasterisk.com
parents: 50
diff changeset
26 ctx.run(f'pnpm run test_forever', pty=True)
90
6077fdc9ed44 inv release
drewp@bigasterisk.com
parents: 68
diff changeset
27
6077fdc9ed44 inv release
drewp@bigasterisk.com
parents: 68
diff changeset
28 @task
6077fdc9ed44 inv release
drewp@bigasterisk.com
parents: 68
diff changeset
29 def release(ctx):
6077fdc9ed44 inv release
drewp@bigasterisk.com
parents: 68
diff changeset
30 ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True)