Mercurial > code > home > repos > streamed-graph
comparison tasks.py @ 24:09080dc809ed
webpack config might finally work
author | drewp@bigasterisk.com |
---|---|
date | Fri, 13 Dec 2019 23:05:12 -0800 |
parents | 23fa6402c728 |
children | 86270a59ae7b |
comparison
equal
deleted
inserted
replaced
23:549b74ad3c03 | 24:09080dc809ed |
---|---|
9 def serve_demo(ctx): | 9 def serve_demo(ctx): |
10 ctx.run('yarn webpack-dev-server --config webpack-dev.config.ts --port 8082') | 10 ctx.run('yarn webpack-dev-server --config webpack-dev.config.ts --port 8082') |
11 | 11 |
12 @task | 12 @task |
13 def build(ctx): | 13 def build(ctx): |
14 ctx.run(f'yarn run webpack-cli --config webpack.config.js --mode production') | 14 ctx.run(f'yarn run webpack-cli --config webpack.config.js --mode production') # --debug --display-error-details |
15 ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') | 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') | 16 ctx.run(f'cp streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css') |
17 | 17 |
18 @task | 18 @task |
19 def test(ctx): | 19 def test(ctx): |