mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
gleam: add page (#12784)
Co-authored-by: spageektti <155078792+spageektti@users.noreply.github.com>
This commit is contained in:
parent
bc3423250b
commit
7c4ebf35b6
1 changed files with 36 additions and 0 deletions
36
pages/common/gleam.md
Normal file
36
pages/common/gleam.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# gleam
|
||||
|
||||
> The compiler, build tool, package manager and code formatter for Gleam, "a friendly language for building type-safe systems that scale!".
|
||||
> More information: <https://gleam.run/writing-gleam/command-line-reference/>.
|
||||
|
||||
- Create a new gleam project:
|
||||
|
||||
`gleam new {{project_name}}`
|
||||
|
||||
- Build and run a gleam project:
|
||||
|
||||
`gleam run`
|
||||
|
||||
- Build the project:
|
||||
|
||||
`gleam build`
|
||||
|
||||
- Run a project for a particular platform and runtime:
|
||||
|
||||
`gleam run --target {{platform}} --runtime {{runtime}}`
|
||||
|
||||
- Add a hex dependency to your project:
|
||||
|
||||
`gleam add {{dependency_name}}`
|
||||
|
||||
- Run project tests:
|
||||
|
||||
`gleam test`
|
||||
|
||||
- Format source code:
|
||||
|
||||
`gleam format`
|
||||
|
||||
- Type check the project:
|
||||
|
||||
`gleam check`
|
Loading…
Add table
Reference in a new issue