Initialize project

This commit is contained in:
Ben Shiller 2024-09-01 21:06:51 -05:00
parent 931ee74ae6
commit d79b09fb76
Signed by: shillerben
GPG Key ID: 959472A099996921
4 changed files with 44 additions and 1 deletions

View File

@ -1,3 +1,10 @@
# star_rss
RSS reader written in gleam
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```

19
gleam.toml Normal file
View File

@ -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"

5
src/star_rss.gleam Normal file
View File

@ -0,0 +1,5 @@
import gleam/io
pub fn main() {
io.println("Hello from star_rss!")
}

12
test/star_rss_test.gleam Normal file
View File

@ -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)
}