Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typst's dependency tree support #21

Open
nixon-voxell opened this issue Nov 5, 2024 · 0 comments
Open

Typst's dependency tree support #21

nixon-voxell opened this issue Nov 5, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@nixon-voxell
Copy link
Member

Goal

You can import packages in typst using the import syntax:

#import "@preview/cetz:0.3.1"

#cetz.canvas({
  import cetz.draw: *
  // Your drawing code goes here
})

The goal is to enable developers to do so without spamming the Typst server on app releases.

The Problem

At the moment, doing so will trigger a warning/error from Velyst as we actively block downloading packages from the server in favor of local packages. This is done to prevent Typst's server spam if the game happens to get a ton of downloads.

However, this is limiting because dependency tracking is needed for packages that depends on other packages...

Proposed Solution

We request downloads from Typst only during development phase. This means that whatever package imports we have, must be pre-downloaded during development phase and embedded into the project folder.

Nice to have

A simple tutorial on explaining the workflow as well as how packaging works when it comes to release phase.

@github-project-automation github-project-automation bot moved this to Todo in Velyst Nov 5, 2024
@nixon-voxell nixon-voxell added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 5, 2024
@nixon-voxell nixon-voxell modified the milestone: v0.1.0 Nov 5, 2024
@nixon-voxell nixon-voxell added this to the v0.1.0 milestone Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant