Mercurial > code > home > repos > streamed-graph
annotate tasks.py @ 50:1264ba9ffb10
make a full-element version for pages that want to try to use that
author | drewp@bigasterisk.com |
---|---|
date | Thu, 09 Jan 2020 00:33:16 -0800 |
parents | 895ae7c5b0f4 |
children | 0d0638bd98be |
rev | line source |
---|---|
0 | 1 from invoke import task # pytype: disable=import-error |
2 | |
3 | |
4 @task | |
5 def setup_npm(ctx): | |
42
895ae7c5b0f4
don't pile all the deps in our sharable library. other fixes to make it work as a dep.
drewp@bigasterisk.com
parents:
35
diff
changeset
|
6 ctx.run('npm install') |
0 | 7 |
8 @task | |
9 def serve_demo(ctx): | |
35 | 10 ctx.run('webfsd -Fp 8021') |
0 | 11 |
12 @task | |
13 def build(ctx): | |
35 | 14 ctx.run(f'npm run build', pty=True) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
15 |
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
16 @task |
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
17 def build_forever(ctx): |
35 | 18 ctx.run(f'npm 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 |
26d3e4860adc
working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents:
0
diff
changeset
|
20 @task |
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): |
33
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
22 ctx.run(f'npm run test', pty=True) |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
23 |
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
24 @task |
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
25 def test_forever(ctx): |
35 | 26 ctx.run(f'npm run test_forever', pty=True) |
27 | |
28 @task(pre=[build]) | |
29 def install(ctx): | |
50
1264ba9ffb10
make a full-element version for pages that want to try to use that
drewp@bigasterisk.com
parents:
42
diff
changeset
|
30 ctx.run(f'cp build/element.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') |