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

Configure Feed

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

create minimal version of the project_erlang directory for testing windows

+70 -2
+2 -2
.github/workflows/ci.yaml
··· 125 125 working-directory: ./test/project_erlang 126 126 if: ${{ matrix.os != 'windows-latest' && matrix.run-integration-tests }} 127 127 128 - - name: test/project_erlang export erlang-shipment (windows) 128 + - name: test/project_erlang_min export erlang-shipment (windows) 129 129 run: | 130 130 gleam export erlang-shipment 131 131 .\build\erlang-shipment\entrypoint.ps1 run 132 - working-directory: ./test/project_erlang 132 + working-directory: ./test/project_erlang_min 133 133 if: ${{ matrix.os == 'windows-latest' && matrix.run-integration-tests }} 134 134 135 135 - name: test/project_javascript
+4
test/project_erlang_min/.gitignore
··· 1 + *.beam 2 + *.ez 3 + build 4 + erl_crash.dump
+17
test/project_erlang_min/gleam.toml
··· 1 + name = "project" 2 + version = "0.1.0" 3 + 4 + [dependencies] 5 + # These are Gleam deps 6 + gleam_stdlib = "~> 0.32" 7 + gleam_erlang = "~> 0.23" 8 + 9 + # This is a rebar3 dep that uses files in ./priv 10 + certifi = "~> 2.12" 11 + # This is a rebar3 dep that uses files in ./ebin 12 + cowboy = "~> 2.10" 13 + # This is a mix dep that uses files in ./priv 14 + countries = "~> 1.6" 15 + 16 + [dev-dependencies] 17 + gleeunit = "~> 0.11"
+22
test/project_erlang_min/manifest.toml
··· 1 + # This file was generated by Gleam 2 + # You typically do not need to edit this file 3 + 4 + packages = [ 5 + { name = "certifi", version = "2.12.0", build_tools = ["rebar3"], requirements = [], otp_app = "certifi", source = "hex", outer_checksum = "EE68D85DF22E554040CDB4BE100F33873AC6051387BAF6A8F6CE82272340FF1C" }, 6 + { name = "countries", version = "1.6.0", build_tools = ["mix"], requirements = ["yamerl"], otp_app = "countries", source = "hex", outer_checksum = "A1E4D0FDD2A799F16A95AE2E842EDEAABD9AC7639624AC5E139C54DA7A6BCCB0" }, 7 + { name = "cowboy", version = "2.10.0", build_tools = ["make", "rebar3"], requirements = ["cowlib", "ranch"], otp_app = "cowboy", source = "hex", outer_checksum = "3AFDCCB7183CC6F143CB14D3CF51FA00E53DB9EC80CDCD525482F5E99BC41D6B" }, 8 + { name = "cowlib", version = "2.12.1", build_tools = ["make", "rebar3"], requirements = [], otp_app = "cowlib", source = "hex", outer_checksum = "163B73F6367A7341B33C794C4E88E7DBFE6498AC42DCD69EF44C5BC5507C8DB0" }, 9 + { name = "gleam_erlang", version = "0.23.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "DA7A8E5540948DE10EB01B530869F8FF2FF6CAD8CFDA87626CE6EF63EBBF87CB" }, 10 + { name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" }, 11 + { name = "gleeunit", version = "0.11.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "1397E5C4AC4108769EE979939AC39BF7870659C5AFB714630DEEEE16B8272AD5" }, 12 + { name = "ranch", version = "1.8.0", build_tools = ["make", "rebar3"], requirements = [], otp_app = "ranch", source = "hex", outer_checksum = "49FBCFD3682FAB1F5D109351B61257676DA1A2FDBE295904176D5E521A2DDFE5" }, 13 + { name = "yamerl", version = "0.10.0", build_tools = ["rebar3"], requirements = [], otp_app = "yamerl", source = "hex", outer_checksum = "346ADB2963F1051DC837A2364E4ACF6EB7D80097C0F53CBDC3046EC8EC4B4E6E" }, 14 + ] 15 + 16 + [requirements] 17 + certifi = { version = "~> 2.12" } 18 + countries = { version = "~> 1.6" } 19 + cowboy = { version = "~> 2.10" } 20 + gleam_erlang = { version = "~> 0.23" } 21 + gleam_stdlib = { version = "~> 0.32" } 22 + gleeunit = { version = "~> 0.11" }
+1
test/project_erlang_min/priv/hello.txt
··· 1 + Hello, Joe!
+5
test/project_erlang_min/src/elixir_file.ex
··· 1 + defmodule ElixirFile do 2 + def main() do 3 + "Hello, from the Elixir module!" 4 + end 5 + end
+6
test/project_erlang_min/src/erlang_file.erl
··· 1 + -module(erlang_file). 2 + 3 + -export([main/0]). 4 + 5 + main() -> 6 + <<"Hello, from the Erlang module!"/utf8>>.
+13
test/project_erlang_min/src/project.gleam
··· 1 + import gleam/io 2 + 3 + pub fn main() { 4 + io.println("Hello, from Gleam compiled to Erlang!") 5 + io.println(erlang_function()) 6 + io.println(elixir_function()) 7 + } 8 + 9 + @external(erlang, "erlang_file", "main") 10 + fn erlang_function() -> String 11 + 12 + @external(erlang, "Elixir.ElixirFile", "main") 13 + fn elixir_function() -> String