Mercurial > code > home > repos > streamed-graph
annotate tasks.py @ 2:6cd3aaf431b6
more adds
author | drewp@bigasterisk.com |
---|---|
date | Tue, 03 Dec 2019 21:48:36 -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') |