mirror of
https://github.com/element-hq/pkl-tools.git
synced 2026-11-15 00:14:35 +00:00
Helpful tools for use in Pkl projects.
- Pkl 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| release | ||
| staticcode | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| SECURITY.md | ||
Pkl Tools
Some helpful tools for use across all of our Pkl projects. Currently there is only a single tool, StaticCode, a renderer that generates Swift or Kotlin code with values directly inline within the code (in contrast to pkl-swift and pkl-codegen-kotlin which load the values in at runtime from a .pkl file).
Usage
The tools in this repo are available as Pkl packages in the following format: "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/<NAME>@<VERSION>. This can be imported directly into a Pkl file:
import "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.0.0#/StaticCode.pkl"
Or within a project:
amends "pkl:Project"
dependencies {
["staticcode"] { uri = "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.0.0" }
}
Releasing
Instructions to make a new release of a package can be found in the release directory.