From 08ca6c465383658c6f6635212a6c252b99197b1c Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 23 Nov 2021 18:25:47 +0000 Subject: [PATCH] v0.2.0 --- .gitignore | 1 + CHANGELOG.md | 4 ++++ gleam.toml | 15 +++++++++++++-- manifest.toml | 11 +++++++++++ rebar.config | 12 ------------ rebar.lock | 8 -------- src/gleam_erlang.app.src | 16 ---------------- test/gleam_erlang_test.gleam | 5 +++++ 8 files changed, 34 insertions(+), 38 deletions(-) create mode 100644 manifest.toml delete mode 100644 rebar.config delete mode 100644 rebar.lock delete mode 100644 src/gleam_erlang.app.src create mode 100644 test/gleam_erlang_test.gleam diff --git a/.gitignore b/.gitignore index 3e67663..918808c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ gen log logs rebar3.crashdump +build diff --git a/CHANGELOG.md b/CHANGELOG.md index 16a37ec..3fe589c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.2.0 - 2021-11-23 + +- Converted from rebar3 to the Gleam build tool. + ## v0.1.0 - 2021-09-11 - Initial release diff --git a/gleam.toml b/gleam.toml index beca39d..3f8757b 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,6 +1,17 @@ name = "gleam_erlang" -[docs] +version = "0.2.0" +licences = ["Apache-2.0"] +description = "A standard library for the Gleam programming language" + +repository = { type = "github", user = "gleam-lang", repo = "erlang" } links = [ - { title = 'GitHub', href = 'https://github.com/gleam-lang/erlang' } + { title = "Website", href = "https://gleam.run" }, + { title = "Sponsor", href = "https://github.com/sponsors/lpil" }, ] + +[dependencies] +gleam_stdlib = "~> 0.18" + +[dev-dependencies] +gleeunit = "~> 0.1" diff --git a/manifest.toml b/manifest.toml new file mode 100644 index 0000000..15a328a --- /dev/null +++ b/manifest.toml @@ -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.18.0-rc1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "8EFAE8452107DBBC4290F7CB1B82668EB884E197909AB6B714DCB75481D632C9" }, + { name = "gleeunit", version = "0.4.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "E8FDD4E31E0BBB87F625B0BB4DEABDE780180F1C2B15A4534442823066468638" }, +] + +[requirements] +gleam_stdlib = "~> 0.18.0-rc1" +gleeunit = "~> 0.1" diff --git a/rebar.config b/rebar.config deleted file mode 100644 index 4e12f9e..0000000 --- a/rebar.config +++ /dev/null @@ -1,12 +0,0 @@ -{erl_opts, [debug_info]}. -{src_dirs, ["src", "gen/src"]}. - -{profiles, [ - {test, [{src_dirs, ["src", "test", "gen/src", "gen/test"]}]} -]}. - -{project_plugins, [rebar_gleam, rebar3_hex]}. - -{deps, [ - {gleam_stdlib, "~> 0.17.0"} -]}. diff --git a/rebar.lock b/rebar.lock deleted file mode 100644 index 45503cb..0000000 --- a/rebar.lock +++ /dev/null @@ -1,8 +0,0 @@ -{"1.2.0", -[{<<"gleam_stdlib">>,{pkg,<<"gleam_stdlib">>,<<"0.17.0">>},0}]}. -[ -{pkg_hash,[ - {<<"gleam_stdlib">>, <<"186494B596DB67A1FDAFFF164F988737AE47A5C634893422397A356CA3C3F979">>}]}, -{pkg_hash_ext,[ - {<<"gleam_stdlib">>, <<"66834E96F3F42609B4E5AAA2B73F9EC45625A422D0AED091B3A704ACAE0420E7">>}]} -]. diff --git a/src/gleam_erlang.app.src b/src/gleam_erlang.app.src deleted file mode 100644 index eb6ac1d..0000000 --- a/src/gleam_erlang.app.src +++ /dev/null @@ -1,16 +0,0 @@ -{application, gleam_erlang, - [{description, "A Gleam library for working with Erlang"}, - {vsn, "0.1.0"}, - {registered, []}, - {applications, - [kernel, - stdlib, - gleam_stdlib - ]}, - {env,[]}, - {modules, []}, - - {include_files, ["gleam.toml", "gen"]}, - {licenses, ["Apache 2.0"]}, - {links, []} -]}. diff --git a/test/gleam_erlang_test.gleam b/test/gleam_erlang_test.gleam new file mode 100644 index 0000000..ecd12ad --- /dev/null +++ b/test/gleam_erlang_test.gleam @@ -0,0 +1,5 @@ +import gleeunit + +pub fn main() { + gleeunit.main() +}