-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The Justfile and CI actions of the template are currently powered by a few scripts in this package, located in scripts/. This duplicates code between all packages using this template, and makes using that functionality harder on non-linux machines.
It would thus be useful to evaluate external tools for replacing the scripts' responsibilities. These are currently
- locating the package install location for different platforms (scripts/setup:6-13)
- reading package metadata from
typst.toml, particularly package name and version for crafting paths and filenames (scripts/setup:15-21) - enumerating package files, respecting the
.typstignorefile (scripts/package:25-68) - collecting and installing package files (scripts/package:70-86)
- uninstalling packages (scripts/uninstall:27-33)
- publishing a package by making a branch in preparation for a PR on typst/packages (.github/workflows/release.yml:57-71)
- misc related logic such as command line argument parsing and validating, and error handling
Not part of any scripts at the moment, but desirable:
- collecting the even smaller set of files that is required for installing a package (as opposed to publishing to Universe) by reading
typst.toml'sexclude - creating proper Github releases and adding artifacts (zip files) to them
- ...?
I'd like to gather here thoughts on these and possible additional requirements from external package management tools, and use this as a starting point for evaluating typship and utpm.
Metadata
Metadata
Assignees
Labels
No labels