Skip to content

Commit 2cbb927

Browse files
committed
♻️refactor(gleam): examples conventions.
main file named main. helper file named helper.
1 parent a4dcb36 commit 2cbb927

File tree

10 files changed

+34
-12
lines changed

10 files changed

+34
-12
lines changed

tests/code samples/languages/gleam/build-and-run/gleam.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "build_and_run"
1+
name = "main"
22
version = "1.0.0"
33

44
# Fill out these fields if you intend to generate HTML documentation or publish
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
6+
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
7+
]
8+
9+
[requirements]
10+
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
11+
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }

tests/code samples/languages/gleam/build-and-run/src/build_and_run.gleam

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import helper
2+
3+
pub fn main() {
4+
helper.hello_world()
5+
}

tests/code samples/languages/gleam/build/gleam.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "build"
1+
name = "main"
22
version = "1.0.0"
33

44
# Fill out these fields if you intend to generate HTML documentation or publish
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
{ name = "gleam_stdlib", version = "0.39.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "2D7DE885A6EA7F1D5015D1698920C9BAF7241102836CE0C3837A4F160128A9C4" },
6+
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
7+
]
8+
9+
[requirements]
10+
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
11+
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }

tests/code samples/languages/gleam/build/src/build.gleam

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import helper
2+
3+
pub fn main() {
4+
helper.hello_world()
5+
}

0 commit comments

Comments
 (0)