Mercurial > code > home > repos > streamed-graph
comparison tasks.py @ 15:7ca4ff2088c3
managed to use a newer ts or something, so this includes a bunch of type fixes too
author | drewp@bigasterisk.com |
---|---|
date | Sun, 08 Dec 2019 23:32:12 -0800 |
parents | 26d3e4860adc |
children | 4bf74032e2e8 |
comparison
equal
deleted
inserted
replaced
14:497d50f8fe5b | 15:7ca4ff2088c3 |
---|---|
5 def setup_npm(ctx): | 5 def setup_npm(ctx): |
6 ctx.run('npm install') | 6 ctx.run('npm install') |
7 | 7 |
8 @task | 8 @task |
9 def serve_demo(ctx): | 9 def serve_demo(ctx): |
10 ctx.run('node_modules/webpack-serve/bin/webpack-serve --config webpack-dev.config.ts --port 8082') | 10 ctx.run('node_modules/.bin/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'npm run build') | 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') | 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): |
20 ctx.run(f'node_modules/ts-node/dist/bin.js node_modules/jasmine/bin/jasmine --config=jasmine.json') | 20 ctx.run(f'node_modules/.bin/webpack-cli --config webpack-test.config.ts') |
21 ctx.run(f'node_modules/.bin/ts-node node_modules/.bin/jasmine --config=jasmine.json') |