Mercurial > code > home > repos > streamed-graph
diff tasks.py @ 0:a9bc14e22e36
start
author | drewp@localhost |
---|---|
date | Tue, 03 Dec 2019 21:27:52 -0800 |
parents | |
children | 26d3e4860adc |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tasks.py Tue Dec 03 21:27:52 2019 -0800 @@ -0,0 +1,16 @@ +from invoke import task # pytype: disable=import-error + + +@task +def setup_npm(ctx): + ctx.run('npm install') + +@task +def serve_demo(ctx): + ctx.run('node_modules/webpack-serve/bin/webpack-serve --config webpack-dev.config.ts --port 8082') + +@task +def build(ctx): + ctx.run(f'npm run build') + ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') + ctx.run(f'cp streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css')