|
| 1 | +<body> |
| 2 | + <!DOCTYPE html> |
| 3 | +<html lang="en-us"> |
| 4 | +<meta charset="UTF-8"> |
| 5 | +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | +<meta content="" name="keywords"> |
| 7 | +<meta content="Elixirscript 0.32.0 Released - Elixirscript" property="og:title"> |
| 8 | +<title>Elixirscript 0.32.0 Released | Elixirscript</title> |
| 9 | +<link rel="stylesheet" href="https://elixirscript.github.io/css/style.css"> |
| 10 | +<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> |
| 11 | + |
| 12 | +<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css"> |
| 13 | + |
| 14 | + |
| 15 | + <section class="section"> |
| 16 | + <div class="container"> |
| 17 | + <nav class="nav"> |
| 18 | + <div class="nav-left"> |
| 19 | + <a class="nav-item" href="https://elixirscript.github.io"> |
| 20 | + <h1 class="title is-4">Elixirscript</h1> |
| 21 | + </a> |
| 22 | + </div> |
| 23 | + <div class="nav-right"> |
| 24 | + <nav class="nav-item level is-mobile"> |
| 25 | + <a class="level-item" href="/guide">Guide</a> |
| 26 | + <a class="level-item" href="https://github.com/elixirscript"> |
| 27 | + <span class="icon"> |
| 28 | + <i class="fa fa-github"></i> |
| 29 | + </span> |
| 30 | + </a> |
| 31 | + |
| 32 | + <a class="level-item" href="/index.xml"> |
| 33 | + <span class="icon"> |
| 34 | + <i class="fa fa-rss"></i> |
| 35 | + </span> |
| 36 | + </a> |
| 37 | + |
| 38 | + </nav> |
| 39 | + </div> |
| 40 | + </nav> |
| 41 | + </div> |
| 42 | +</section> |
| 43 | + <section class="section"> |
| 44 | + <div class="container"> |
| 45 | + <h2 class="subtitle is-6">February 10, 2018</h2> |
| 46 | + <h1 class="title">Elixirscript 0.32.0 Released</h1> |
| 47 | + |
| 48 | + <div class="content"> |
| 49 | + |
| 50 | + |
| 51 | +<p><a href="https://hex.pm/packages/elixir_script">ElixirScript 0.32</a> is released. This release includes one major addition and a number of important changes.</p> |
| 52 | + |
| 53 | +<h2 id="elixirscript-test">ElixirScript.Test</h2> |
| 54 | + |
| 55 | +<p>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 <code>test_elixir_script</code>. Tests are compiled and then are executed using node.js.</p> |
| 56 | + |
| 57 | +<h2 id="changes">Changes</h2> |
| 58 | + |
| 59 | +<p>Changes for this release include:</p> |
| 60 | + |
| 61 | +<ul> |
| 62 | +<li>ElixirScript now requires Elixir 1.6</li> |
| 63 | +<li><code>mix clean</code> now correctly cleans up ElixirScript output</li> |
| 64 | +<li>Compiler now outputs a JavaScript file per Elixir module.</li> |
| 65 | +<li>Modules with a <code>start/2</code> function must be started directly.</li> |
| 66 | +</ul> |
| 67 | + |
| 68 | +<pre><code class="language-elixir"> # Before ElixirScript 0.32.0: |
| 69 | + import Elixir from './elixirscript.build.js' |
| 70 | + Elixir.start(Elixir.Main, [1, 2, 3]) |
| 71 | + |
| 72 | + # ElixirScript 0.32.0 and later: |
| 73 | + import Main from './Elixir.Main.js' |
| 74 | + Main.start(Symbol.for('normal'), [1, 2, 3]) |
| 75 | +</code></pre> |
| 76 | + |
| 77 | +<p>For more information regarding changes, please check the <a href="https://github.com/elixirscript/elixirscript/blob/master/CHANGELOG.md">changelog</a>.</p> |
| 78 | + |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + </section> |
| 82 | + |
| 83 | + |
| 84 | + <section class="section"> |
| 85 | + <div class="container has-text-centered"> |
| 86 | + <p></p> |
| 87 | + </div> |
| 88 | +</section> |
| 89 | +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" integrity="sha256-/BfiIkHlHoVihZdc6TFuj7MmJ0TWcWsMXkeDFwhi0zw=" crossorigin="anonymous"></script> |
| 90 | + |
| 91 | +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/elixir.min.js"></script> |
| 92 | + |
| 93 | +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/javascript.min.js"></script> |
| 94 | + |
| 95 | +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/bash.min.js"></script> |
| 96 | + |
| 97 | +<script>hljs.initHighlightingOnLoad();</script> |
| 98 | + |
| 99 | + |
| 100 | +</body> |
0 commit comments