Skip to content

Commit

Permalink
feat: add vagrant template for Kotlin and TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Nov 22, 2017
1 parent a0f9b42 commit 9b14d6d
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 15 deletions.
19 changes: 19 additions & 0 deletions Kotlin/Vagrantfile
@@ -0,0 +1,19 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"

config.vm.provision "file", source: "scripts", destination: "scripts"
config.vm.provision "file", source: "hello.kt", destination: "hello.kt"

config.vm.provision "shell", inline: <<-SHELL
echo 'source ~/scripts' >> .bashrc
SHELL

# OPTIONAL: increase ram and cpus to speed up builds
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
end
3 changes: 3 additions & 0 deletions Kotlin/hello.kt
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
println("Hello, world!")
}
9 changes: 9 additions & 0 deletions Kotlin/scripts
@@ -0,0 +1,9 @@
#!/bin/sh

function install () {
echo 'No install has been added yet, feel free to open a pull request'
}

function build () {
echo 'No build has been added yet, feel free to open a pull request'
}
32 changes: 17 additions & 15 deletions README.md
Expand Up @@ -4,21 +4,23 @@ The goal of this project is to see what languages can be compiled into Web Assem

## Languages

| Language | Compiles to LLVM | Compiles to WASM |
|---------------------|:------------------:|:------------------:|
| [C](C/) | :white_check_mark: | :white_check_mark: |
| [C#](C#/) | :white_check_mark: | :white_check_mark: |
| [C++](C++/) | :white_check_mark: | :white_check_mark: |
| [Crystal](Crystal/) | :white_check_mark: | :question: |
| [F#](F#/) | :question: | :question: |
| [Go](Go/) | :question: | :question: |
| [Haskell](Haskell/) | :question: | :question: |
| [Java](Java/) | :question: | :question: |
| [Julia](Julia/) | :white_check_mark: | :question: |
| [Nim](Nim/) | :question: | :question: |
| [Python](Python/) | :question: | :question: |
| [Rust](Rust/) | :white_check_mark: | :white_check_mark: |
| [Swift](Swift/) | :white_check_mark: | :question: |
| Language | Compiles to LLVM | Compiles to WASM |
|---------------------------|:------------------:|:------------------:|
| [C](C/) | :white_check_mark: | :white_check_mark: |
| [C#](C#/) | :white_check_mark: | :white_check_mark: |
| [C++](C++/) | :white_check_mark: | :white_check_mark: |
| [Crystal](Crystal/) | :white_check_mark: | :question: |
| [F#](F#/) | :question: | :question: |
| [Go](Go/) | :question: | :question: |
| [Haskell](Haskell/) | :question: | :question: |
| [Java](Java/) | :question: | :question: |
| [Julia](Julia/) | :white_check_mark: | :question: |
| [Kotlin](Kotlin/) | :question: | :question: |
| [Nim](Nim/) | :question: | :question: |
| [Python](Python/) | :question: | :question: |
| [Rust](Rust/) | :white_check_mark: | :white_check_mark: |
| [Swift](Swift/) | :white_check_mark: | :question: |
| [TypeScript](TypeScript/) | :question: | :question: |

### Key

Expand Down
19 changes: 19 additions & 0 deletions TypeScript/Vagrantfile
@@ -0,0 +1,19 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"

config.vm.provision "file", source: "scripts", destination: "scripts"
config.vm.provision "file", source: "hello.ts", destination: "hello.ts"

config.vm.provision "shell", inline: <<-SHELL
echo 'source ~/scripts' >> .bashrc
SHELL

# OPTIONAL: increase ram and cpus to speed up builds
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
end
1 change: 1 addition & 0 deletions TypeScript/hello.ts
@@ -0,0 +1 @@
console.log('hello world');
9 changes: 9 additions & 0 deletions TypeScript/scripts
@@ -0,0 +1,9 @@
#!/bin/sh

function install () {
echo 'No install has been added yet, feel free to open a pull request'
}

function build () {
echo 'No build has been added yet, feel free to open a pull request'
}
Binary file added bin/HelloKt.class
Binary file not shown.
Binary file added bin/META-INF/main.kotlin_module
Binary file not shown.

0 comments on commit 9b14d6d

Please sign in to comment.