Mercurial > code > home > repos > streamed-graph
view tasks.py @ 100:ad08e5e25fc9
revert jsonld a few years to avoid a vite/commonjs build issue
the newer jsonld has this dep graph:
jsonld 5.2.0
└─┬ rdf-canonize 3.0.0
└── setimmediate 1.0.5
and that setimmediate uses strict in a way that breaks the build, etc.
author | drewp@bigasterisk.com |
---|---|
date | Fri, 11 Feb 2022 22:57:23 -0800 |
parents | 8db5ba7e12b9 |
children | 5e6840229a05 |
line wrap: on
line source
from invoke import task # pytype: disable=import-error @task def setup_js(ctx): if 0: # only reasonable on bang,but dash tries to rebuild it ctx.run('pnpm install --dir=$PWD') @task(pre=[setup_js]) def serve_demo(ctx): ctx.run('webfsd -Fp 8021') @task(pre=[setup_js]) def build(ctx): ctx.run(f'pnpm run build', pty=True) @task(pre=[setup_js]) def build_forever(ctx): ctx.run(f'pnpm run build_forever', pty=True) @task(pre=[setup_js]) def test(ctx): ctx.run(f'pnpm run test', pty=True) @task(pre=[setup_js]) def test_forever(ctx): ctx.run(f'pnpm run test_forever', pty=True) @task def release(ctx): ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True)