Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Test for compile-package --lib

+27
+4
.github/workflows/ci.yaml
··· 134 134 run: make 135 135 working-directory: ./test/compile_package0 136 136 137 + - name: test/compile_package1 138 + run: make 139 + working-directory: ./test/compile_package1 140 + 137 141 - name: Test app template 138 142 run: | 139 143 gleam new app_project --template=app
+2
test/compile_package1/.gitignore
··· 1 + out1 2 + out2
+13
test/compile_package1/Makefile
··· 1 + .phony: build 2 + build: 3 + # Remove any previously compiled code 4 + rm -rf out1 out2 5 + # Compile the first Gleam package 6 + cargo run -- compile-package --name one --src src1 --out out1 7 + # Compile the second Gleam package which depends on the first 8 + cargo run -- compile-package --name two --src src2 --out out2 --lib out1 9 + # Compile the Erlang 10 + cd out1 && erlc *.erl 11 + cd out2 && erlc *.erl 12 + # Run the code 13 + erl -pa out1 out2 -noshell -eval "erlang:display(two:main()),halt()"
+3
test/compile_package1/src1/one.gleam
··· 1 + pub fn hello() -> String { 2 + "Hello" 3 + }
+5
test/compile_package1/src2/two.gleam
··· 1 + import one 2 + 3 + pub fn main() { 4 + one.hello() 5 + }