diff tasks.py @ 35:29d8ed02a275

build and tests, including jsonld
author drewp@bigasterisk.com
date Sat, 28 Dec 2019 02:01:23 -0800
parents b82c05e22d9a
children 895ae7c5b0f4
line wrap: on
line diff
--- a/tasks.py	Fri Dec 27 21:26:55 2019 -0800
+++ b/tasks.py	Sat Dec 28 02:01:23 2019 -0800
@@ -7,21 +7,15 @@
 
 @task
 def serve_demo(ctx):
-    ctx.run('npm run webpack-dev-server')
+    ctx.run('webfsd -Fp 8021')
 
 @task
 def build(ctx):
-    ctx.run(f'npm run webpack-build', pty=True)
-    ctx.run(f'cp build/bundle.js         /my/site/homepage/www/rdf/streamed-graph.bundle.js')
-    ctx.run(f'cp src/streamed-graph.css  /my/site/homepage/www/rdf/streamed-graph.css')
+    ctx.run(f'npm run build', pty=True)
 
 @task
 def build_forever(ctx):
-    ctx.run(f'npm run run webpack-build-forever', pty=True)
-
-@task
-def dev_server(ctx):
-    ctx.run(f'npm run webpack-dev-server', pty=True)
+    ctx.run(f'npm run build_forever', pty=True)
 
 @task
 def test(ctx):
@@ -29,4 +23,9 @@
 
 @task
 def test_forever(ctx):
-    ctx.run(f'npm run test-forever', pty=True)
+    ctx.run(f'npm run test_forever', pty=True)
+
+@task(pre=[build])
+def install(ctx):
+    ctx.run(f'cp build/bundle.js         /my/site/homepage/www/rdf/streamed-graph.bundle.js')
+    ctx.run(f'cp src/streamed-graph.css  /my/site/homepage/www/rdf/streamed-graph.css')