Mercurial > code > home > repos > streamed-graph
diff tasks.py @ 60:0d0638bd98be
use pnpm
author | drewp@bigasterisk.com |
---|---|
date | Wed, 15 Jan 2020 10:46:59 -0800 |
parents | 1264ba9ffb10 |
children | f357cd36c26e |
line wrap: on
line diff
--- a/tasks.py Mon Jan 13 23:44:41 2020 -0800 +++ b/tasks.py Wed Jan 15 10:46:59 2020 -0800 @@ -2,8 +2,8 @@ @task -def setup_npm(ctx): - ctx.run('npm install') +def setup_js(ctx): + ctx.run('pnpm install') @task def serve_demo(ctx): @@ -11,20 +11,16 @@ @task def build(ctx): - ctx.run(f'npm run build', pty=True) + ctx.run(f'pnpm run build', pty=True) @task def build_forever(ctx): - ctx.run(f'npm run build_forever', pty=True) + ctx.run(f'pnpm run build_forever', pty=True) @task def test(ctx): - ctx.run(f'npm run test', pty=True) + ctx.run(f'pnpm run test', pty=True) @task def test_forever(ctx): - ctx.run(f'npm run test_forever', pty=True) - -@task(pre=[build]) -def install(ctx): - ctx.run(f'cp build/element.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') + ctx.run(f'pnpm run test_forever', pty=True)