Skip to content

Commit bfa7319

Browse files
committed
Removed stdlib_state.exs from src control. Updated readme
1 parent 8fce139 commit bfa7319

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ index.js
1717
test/std_lib_compile_test.exs
1818
src/elixirscript
1919
priv/*.js
20+
lib/elixir_script/translator/stdlib_state.bin

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Get dependencies
3434
Compile
3535

3636
mix compile
37+
mix std_lib
3738

3839
Test
3940

lib/elixir_script.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ defmodule ElixirScript do
4343
end
4444

4545
# This is the serialized state of the ElixirScript.State module containing references to the standard library
46-
@external_resource stdlib_state_path = Path.join([__DIR__, "elixir_script", "translator", "stdlib_state.exs"])
46+
@external_resource stdlib_state_path = Path.join([__DIR__, "elixir_script", "translator", "stdlib_state.bin"])
4747
@stdlib_state File.read!(stdlib_state_path)
4848

4949
@doc """
@@ -123,7 +123,7 @@ defmodule ElixirScript do
123123
new_std_state = ElixirScript.Translator.State.serialize()
124124
ElixirScript.Translator.State.stop
125125

126-
File.write!(File.cwd!() <> "/lib/elixir_script/translator/stdlib_state.exs", new_std_state)
126+
File.write!(File.cwd!() <> "/lib/elixir_script/translator/stdlib_state.bin", new_std_state)
127127
Output.out(libs_path, code, compiler_opts)
128128
end
129129

-127 KB
Binary file not shown.

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ defmodule ElixirScript.Mixfile do
4848

4949
defp package do
5050
[
51-
files: ["lib", "priv/Elixir.js", "mix.exs", "README*", "readme*", "LICENSE*", "license*", "CHANGELOG*"],
51+
files: ["lib", "priv/*.js", "mix.exs", "README*", "readme*", "LICENSE*", "license*", "CHANGELOG*"],
5252
maintainers: ["Bryan Joseph"],
5353
licenses: ["MIT"],
5454
links: %{

test/translator/pattern_matching_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule ElixirScript.Translator.PatternMatching.Test do
66
alias ElixirScript.Translator.Map
77
alias ESTree.Tools.Builder, as: JS
88

9-
@std_lib_state File.read!(File.cwd!() <> "/lib/elixir_script/translator/stdlib_state.exs")
9+
@std_lib_state File.read!(File.cwd!() <> "/lib/elixir_script/translator/stdlib_state.bin")
1010

1111
setup do
1212
ElixirScript.Translator.State.start_link(%{env: ElixirScript.custom_env})

0 commit comments

Comments
 (0)