changed file structure and build
This commit is contained in:
parent
cc36d46002
commit
06de3c2f7e
8 changed files with 5 additions and 8 deletions
6
build
6
build
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
erlc *.erl -o ebin
|
||||
for i in `find src -name "*.erl"`
|
||||
do
|
||||
erlc -o ebin $i
|
||||
done
|
||||
|
||||
|
|
BIN
js_runner.beam
BIN
js_runner.beam
Binary file not shown.
BIN
js_test.beam
BIN
js_test.beam
Binary file not shown.
|
@ -1,7 +0,0 @@
|
|||
-module(js_test).
|
||||
-export([run/0]).
|
||||
run() ->
|
||||
erlang_js:start(),
|
||||
{ok, Port} = js_driver:new(),
|
||||
ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>),
|
||||
js:call(Port, <<"helloworld">>, [<<"Generic Game Server">>]).
|
BIN
src/ggs_app.beam
BIN
src/ggs_app.beam
Binary file not shown.
Binary file not shown.
BIN
src/ggs_sup.beam
BIN
src/ggs_sup.beam
Binary file not shown.
Reference in a new issue