Mercurial > code > home > repos > streamed-graph
comparison tasks.py @ 0:a9bc14e22e36
start
author | drewp@localhost |
---|---|
date | Tue, 03 Dec 2019 21:27:52 -0800 |
parents | |
children | 26d3e4860adc |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a9bc14e22e36 |
---|---|
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') |