Skip to content

Commit 152d300

Browse files
committed
simpler eval later support, add new dev env
1 parent 3489bc1 commit 152d300

File tree

6 files changed

+6033
-25557
lines changed

6 files changed

+6033
-25557
lines changed

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
3+
{
4+
"name": "Rust",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
7+
"runArgs": [
8+
"--userns=keep-id" // For Podman
9+
],
10+
"containerUser": "vscode" // For Podman
11+
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
12+
// "mounts": [
13+
// {
14+
// "source": "devcontainer-cargo-cache-${devcontainerId}",
15+
// "target": "/usr/local/cargo",
16+
// "type": "volume"
17+
// }
18+
// ]
19+
20+
// Features to add to the dev container. More info: https://containers.dev/features.
21+
// "features": {},
22+
23+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
24+
// "forwardPorts": [],
25+
26+
// Use 'postCreateCommand' to run commands after the container is created.
27+
// "postCreateCommand": "rustc --version",
28+
29+
// Configure tool-specific properties.
30+
// "customizations": {},
31+
32+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
33+
// "remoteUser": "root"
34+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ https://typst.app/universe/package/ctxjs/
6060
| 0.1.0 | 5.5.1 |
6161
| 0.1.1 | 5.5.1<sup>1</sup> |
6262

63-
<sup>1</sup> smaller bundle size & fix for #2
63+
<sup>1</sup> smaller bundle size & new eval-later feature

build.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
cp README.md typst-package/
2-
cp LICENSE typst-package/
3-
4-
npm --prefix js run build
5-
6-
cargo run --manifest-path typst-ctxjs-package/Cargo.toml --bin ctxjs_module_bytecode_builder echarm js/dist/echarm.js typst-package/echarm.kbc1
7-
examples="examples/*.typ"
8-
for f in $examples
9-
do
10-
typst compile --root . $f "${f%.*}.png"
11-
done
1+
cp README.md typst-package/
2+
cp LICENSE typst-package/
3+
4+
npm --prefix js run build
5+
6+
cargo run --manifest-path typst-ctxjs-package/Cargo.toml --bin ctxjs_module_bytecode_builder echarm js/dist/echarm.js typst-package/echarm.kbc1
7+
examples="examples/*.typ"
8+
for f in $examples
9+
do
10+
typst compile --root . $f "${f%.*}.png"
11+
done
1212
cp -r examples typst-package/

typst-package/

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)