Mercurial > code > home > repos > streamed-graph
view tasks.py @ 83:b973d7f95fdf
bake out the stylus to plain css; add this https://ziga-petek.medium.com/using-fonts-in-web-components-6aba251ed4e5 to make fonts work
author | drewp@bigasterisk.com |
---|---|
date | Wed, 17 Nov 2021 16:42:59 -0800 |
parents | f357cd36c26e |
children | 6077fdc9ed44 |
line wrap: on
line source
from invoke import task # pytype: disable=import-error @task def setup_js(ctx): ctx.run('pnpm install') @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)