1
0
Fork 0

setup gleam project

This commit is contained in:
sloane 2024-12-02 08:41:12 -05:00
parent 54a72ab685
commit 417ed605f6
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ
5 changed files with 53 additions and 0 deletions

View file

@ -1,3 +1,4 @@
[tools]
elixir = "1.17.3-otp-27"
erlang = "27.1.2"
gleam = "1.6.2"

4
2024/gleam/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*.beam
*.ez
/build
erl_crash.dump

24
2024/gleam/README.md Normal file
View file

@ -0,0 +1,24 @@
# aoc
[![Package Version](https://img.shields.io/hexpm/v/aoc)](https://hex.pm/packages/aoc)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/aoc/)
```sh
gleam add aoc@1
```
```gleam
import aoc
pub fn main() {
// TODO: An example of the project in use
}
```
Further documentation can be found at <https://hexdocs.pm/aoc>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```

19
2024/gleam/gleam.toml Normal file
View file

@ -0,0 +1,19 @@
name = "aoc"
version = "1.0.0"
# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
#
# description = ""
# licences = ["Apache-2.0"]
# repository = { type = "github", user = "", repo = "" }
# 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
2024/gleam/src/aoc.gleam Normal file
View file

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