How to to build locally and deploy to Typst app and Typst templates.
To reduce the size of images, which is nice for reducing the template size.
pngquant *.png --ext .png --force
-
Create symlink to this repository from
~/.cache/typst/packages
togit/packages/packages/preview
. For this :ln -s ~/git/isc-hei-report ~/.cache/typst/packages/preview/isc-hei-report/0.1.5
This prevents the download of packages and uses the local versions of this package.
-
For local testing and development, once the step above has been done, you can simply build from the
template
directory usingtypst watch report.typ
-
Additional testing can be conducted to see if the template instance works correctly with
typst init @preview/isc-hei-report:0.1.5
-
Copy the content of this repos to the
typst-template
repository usingcp * -R ~/git/packages/packages/preview/isc-hei-report/0.1.5/
-
Do not forget to add a proper
.gitignore
to remove all PDFs -
Lint for kebab-case only
-
Create PR as usual.