add gleam
This commit is contained in:
parent
cbc4db7ada
commit
fe69427389
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Install Erlang
|
||||||
|
apt-get update
|
||||||
|
apt-get install wget -y
|
||||||
|
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
|
||||||
|
dpkg -i erlang-solutions_2.0_all.deb
|
||||||
|
apt-get install esl-erlang
|
||||||
|
|
||||||
|
# Install Gleam
|
||||||
|
curl -L "https://github.com/gleam-lang/gleam/releases/download/v0.26.2/gleam-v0.26.2-x86_64-unknown-linux-musl.tar.gz" --output gleam.tar.gz
|
||||||
|
mkdir gleam
|
||||||
|
tar -xf gleam.tar.gz -C gleam
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
export PATH:=$PWD/gleam:PATH
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "gleam",
|
||||||
|
"version": "0.26.2",
|
||||||
|
"aliases": ["gleam"]
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
gleam new project
|
||||||
|
cat $1 > project/project.gleam
|
||||||
|
cd project
|
||||||
|
gleam run
|
Loading…
Reference in New Issue