closer- element now holds a changing graph, but can't draw it yet
author |
drewp@bigasterisk.com |
date |
Thu, 05 Dec 2019 01:32:13 -0800 |
parents |
a9bc14e22e36 |
children |
26d3e4860adc |
rev |
line source |
0
|
1 from invoke import task # pytype: disable=import-error
|
|
2
|
|
3
|
|
4 @task
|
|
5 def setup_npm(ctx):
|
|
6 ctx.run('npm install')
|
|
7
|
|
8 @task
|
|
9 def serve_demo(ctx):
|
|
10 ctx.run('node_modules/webpack-serve/bin/webpack-serve --config webpack-dev.config.ts --port 8082')
|
|
11
|
|
12 @task
|
|
13 def build(ctx):
|
|
14 ctx.run(f'npm run build')
|
|
15 ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js')
|
|
16 ctx.run(f'cp streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css')
|