annotate tasks.py @ 9:26d3e4860adc

working on porting graph_view to n3.js. also working on making tests run
author drewp@bigasterisk.com
date Fri, 06 Dec 2019 09:19:43 -0800
parents a9bc14e22e36
children 7ca4ff2088c3 94629c39681c
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
drewp@localhost
parents:
diff changeset
5 def setup_npm(ctx):
drewp@localhost
parents:
diff changeset
6 ctx.run('npm install')
drewp@localhost
parents:
diff changeset
7
drewp@localhost
parents:
diff changeset
8 @task
drewp@localhost
parents:
diff changeset
9 def serve_demo(ctx):
drewp@localhost
parents:
diff changeset
10 ctx.run('node_modules/webpack-serve/bin/webpack-serve --config webpack-dev.config.ts --port 8082')
drewp@localhost
parents:
diff changeset
11
drewp@localhost
parents:
diff changeset
12 @task
drewp@localhost
parents:
diff changeset
13 def build(ctx):
drewp@localhost
parents:
diff changeset
14 ctx.run(f'npm run build')
drewp@localhost
parents:
diff changeset
15 ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js')
drewp@localhost
parents:
diff changeset
16 ctx.run(f'cp streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css')
9
26d3e4860adc working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents: 0
diff changeset
17
26d3e4860adc working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents: 0
diff changeset
18 @task
26d3e4860adc working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents: 0
diff changeset
19 def test(ctx):
26d3e4860adc working on porting graph_view to n3.js. also working on making tests run
drewp@bigasterisk.com
parents: 0
diff changeset
20 ctx.run(f'node_modules/ts-node/dist/bin.js node_modules/jasmine/bin/jasmine --config=jasmine.json')