Mercurial > code > home > repos > streamed-graph
comparison tasks.py @ 126:9a57f8c556d2
add depgraph task
author | drewp@bigasterisk.com |
---|---|
date | Fri, 05 May 2023 21:22:35 -0700 |
parents | 5e6840229a05 |
children | 73a70d00fb74 |
comparison
equal
deleted
inserted
replaced
124:e26daf747e19 | 126:9a57f8c556d2 |
---|---|
1 import os | |
1 from invoke import task # pytype: disable=import-error | 2 from invoke import task # pytype: disable=import-error |
2 | 3 |
3 | 4 |
4 @task | 5 @task |
5 def setup_js(ctx): | 6 def setup_js(ctx): |
31 ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True) | 32 ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True) |
32 | 33 |
33 @task | 34 @task |
34 def dev(ctx): | 35 def dev(ctx): |
35 ctx.run('pnpm dev') | 36 ctx.run('pnpm dev') |
37 | |
38 @task | |
39 def deps(ctx): | |
40 ctx.run('node_modules/.bin/depcruise --config .dependency-cruiser.js -T dot src | dot -Tsvg > deps.svg') | |
41 print(f"browse to file://{os.path.abspath('deps.svg')}") |