Skip to content

Commit 111d4ba

Browse files
committed
New post
1 parent d665735 commit 111d4ba

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
+++
2+
title = "Elixirscript 0.32.0 Released"
3+
date = 2018-02-10T10:10:21-06:00
4+
draft = false
5+
+++
6+
7+
[ElixirScript 0.32](https://hex.pm/packages/elixir_script) is released. This release includes one major addition and a number of important changes.
8+
9+
## ElixirScript.Test
10+
11+
ElixirScript.Test is a framework for testing Elixir modules that interact with JavaScript via the FFI. For all other modules, ExUnit is still recommended. ElixirScript.Test's API is similar to ExUnit's API. ElixirScript.Test files must be placed in a folder named `test_elixir_script`. Tests are compiled and then are executed using node.js.
12+
13+
## Changes
14+
15+
Changes for this release include:
16+
17+
* ElixirScript now requires Elixir 1.6
18+
* `mix clean` now correctly cleans up ElixirScript output
19+
* Compiler now outputs a JavaScript file per Elixir module.
20+
* Modules with a `start/2` function must be started directly.
21+
22+
```elixir
23+
# Before ElixirScript 0.32.0:
24+
import Elixir from './elixirscript.build.js'
25+
Elixir.start(Elixir.Main, [1, 2, 3])
26+
27+
# ElixirScript 0.32.0 and later:
28+
import Main from './Elixir.Main.js'
29+
Main.start(Symbol.for('normal'), [1, 2, 3])
30+
```
31+
32+
For more information regarding changes, please check the [changelog](https://github.com/elixirscript/elixirscript/blob/master/CHANGELOG.md).

0 commit comments

Comments
 (0)