Skip to content

Commit

Permalink
♻️refactor(gleam): examples conventions.
Browse files Browse the repository at this point in the history
main file named main. helper file named helper.
  • Loading branch information
Zeioth committed Jul 16, 2024
1 parent a4dcb36 commit 2cbb927
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "build_and_run"
name = "main"
version = "1.0.0"

# Fill out these fields if you intend to generate HTML documentation or publish
Expand Down
11 changes: 11 additions & 0 deletions tests/code samples/languages/gleam/build-and-run/manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file was generated by Gleam
# You typically do not need to edit this file

packages = [
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
]

[requirements]
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import helper

pub fn main() {
helper.hello_world()
}
2 changes: 1 addition & 1 deletion tests/code samples/languages/gleam/build/gleam.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "build"
name = "main"
version = "1.0.0"

# Fill out these fields if you intend to generate HTML documentation or publish
Expand Down
11 changes: 11 additions & 0 deletions tests/code samples/languages/gleam/build/manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file was generated by Gleam
# You typically do not need to edit this file

packages = [
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
]

[requirements]
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
5 changes: 0 additions & 5 deletions tests/code samples/languages/gleam/build/src/build.gleam

This file was deleted.

5 changes: 5 additions & 0 deletions tests/code samples/languages/gleam/build/src/main.gleam
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import helper

pub fn main() {
helper.hello_world()
}

0 comments on commit 2cbb927

Please sign in to comment.