From d79b09fb762daa2f4f2d3b8ad1f22957254a764d Mon Sep 17 00:00:00 2001 From: Ben Shiller Date: Sun, 1 Sep 2024 21:06:51 -0500 Subject: [PATCH] Initialize project --- README.md | 9 ++++++++- gleam.toml | 19 +++++++++++++++++++ src/star_rss.gleam | 5 +++++ test/star_rss_test.gleam | 12 ++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 gleam.toml create mode 100644 src/star_rss.gleam create mode 100644 test/star_rss_test.gleam diff --git a/README.md b/README.md index 5bec7ca..cc470b7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # star_rss -RSS reader written in gleam \ No newline at end of file +RSS reader written in gleam + +## Development + +```sh +gleam run # Run the project +gleam test # Run the tests +``` diff --git a/gleam.toml b/gleam.toml new file mode 100644 index 0000000..f102000 --- /dev/null +++ b/gleam.toml @@ -0,0 +1,19 @@ +name = "star_rss" +version = "0.0.1" + +# Fill out these fields if you intend to generate HTML documentation or publish +# your project to the Hex package manager. +# +description = "RSS reader" +licences = ["Apache-2.0"] +repository = { type = "gitea", host = "git.shillerben.com", user = "shillerben", repo = "star_rss" } +# links = [{ title = "Website", href = "" }] +# +# For a full reference of all the available options, you can have a look at +# https://gleam.run/writing-gleam/gleam-toml/. + +[dependencies] +gleam_stdlib = ">= 0.34.0 and < 2.0.0" + +[dev-dependencies] +gleeunit = ">= 1.0.0 and < 2.0.0" diff --git a/src/star_rss.gleam b/src/star_rss.gleam new file mode 100644 index 0000000..be9fd1e --- /dev/null +++ b/src/star_rss.gleam @@ -0,0 +1,5 @@ +import gleam/io + +pub fn main() { + io.println("Hello from star_rss!") +} diff --git a/test/star_rss_test.gleam b/test/star_rss_test.gleam new file mode 100644 index 0000000..3831e7a --- /dev/null +++ b/test/star_rss_test.gleam @@ -0,0 +1,12 @@ +import gleeunit +import gleeunit/should + +pub fn main() { + gleeunit.main() +} + +// gleeunit test functions end in `_test` +pub fn hello_world_test() { + 1 + |> should.equal(1) +}