|
| 1 | + |
| 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.25.0 released - Elixirscript" property="og:title"> |
| 8 | +<title>Elixirscript 0.25.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.9.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"><h1 class="title is-4">Elixirscript</h1></a> |
| 20 | + </div> |
| 21 | + <div class="nav-right"> |
| 22 | + <nav class="nav-item level is-mobile"> |
| 23 | + |
| 24 | + <a class="level-item" href="https://github.com/elixirscript"> |
| 25 | + <span class="icon"> |
| 26 | + <i class="fa fa-github"></i> |
| 27 | + </span> |
| 28 | + </a> |
| 29 | + |
| 30 | + <a class="level-item" href="/index.xml"> |
| 31 | + <span class="icon"> |
| 32 | + <i class="fa fa-rss"></i> |
| 33 | + </span> |
| 34 | + </a> |
| 35 | + |
| 36 | + </nav> |
| 37 | + </div> |
| 38 | + </nav> |
| 39 | + </div> |
| 40 | +</section> |
| 41 | + |
| 42 | +<section class="section"> |
| 43 | + <div class="container"> |
| 44 | + <h2 class="subtitle is-6">February 19, 2017</h2> |
| 45 | + <h1 class="title">Elixirscript 0.25.0 released</h1> |
| 46 | + |
| 47 | + <div class="content"> |
| 48 | + |
| 49 | + |
| 50 | +<p>0.25.0 adds some big changes. For a full look at what’s new, look at the <a href="https://github.com/elixirscript/elixirscript/blob/master/CHANGELOG.md">changelog.</a> Below is a summary of the major changes.</p> |
| 51 | + |
| 52 | +<h2 id="select-module-format-of-output">Select module format of output</h2> |
| 53 | + |
| 54 | +<p>Beginning with this release, the module format of generated JavaScript is selectable. The choices are:</p> |
| 55 | + |
| 56 | +<ul> |
| 57 | +<li><p>es - ES Modules (default)</p></li> |
| 58 | + |
| 59 | +<li><p>common - CommonJS modules</p></li> |
| 60 | + |
| 61 | +<li><p>umd - UMD modules</p></li> |
| 62 | +</ul> |
| 63 | + |
| 64 | +<p>The common options means you can use the output in node without the need for tools like babel. The same for UMD in modern browsers (if you use <a href="http://requirejs.org/">requirejs</a> or add in each file in script tags). JS.import is also updated to generate the correct import code for the specified format.</p> |
| 65 | + |
| 66 | +<h2 id="dependencies-support-in-mix-projects">Dependencies support in mix projects</h2> |
| 67 | + |
| 68 | +<p>This release also brings support for dependencies in mix projects.</p> |
| 69 | + |
| 70 | +<p>Your mix project must include the <a href="https://github.com/elixirscript/elixirscript/blob/master/GettingStarted.md#mix-dependency">elixirscript compiler in its list of compilers</a>. Dependencies you use must also have the elixirscript compiler in their mix compilers. When you run “mix compile”, the compiler will compile the elixirscript code in the paths defined in those dependencies with your code.</p> |
| 71 | + |
| 72 | +<h2 id="default-compiler-parameters">Default compiler parameters</h2> |
| 73 | + |
| 74 | +<p>The elixirscript mix compiler has the following compiler defaults:</p> |
| 75 | + |
| 76 | +<ul> |
| 77 | +<li><p>input: “lib/elixirscript”</p></li> |
| 78 | + |
| 79 | +<li><p>output: “priv/elixirscript”</p></li> |
| 80 | + |
| 81 | +<li><p>format: “:es”</p></li> |
| 82 | +</ul> |
| 83 | + |
| 84 | +<p>These are changeable by adding the “elixir_script” settings to your mix project.</p> |
| 85 | + |
| 86 | +<h2 id="other-announcements">Other announcements</h2> |
| 87 | + |
| 88 | +<ul> |
| 89 | +<li><p>Elixirscript now has an <a href="https://github.com/elixirscript">organization.</a> It has all elixirscript-related projects.</p></li> |
| 90 | + |
| 91 | +<li><p>Elixirscript now has a <a href="https://gitter.im/elixirscript/elixirscript">gitter</a> room. I am still reachable in the “elixirscript” slack channel on the elixir-lang slack. The gitter room makes sure that conversation history isn’t lost allows for integrations.</p></li> |
| 92 | +</ul> |
| 93 | + |
| 94 | + </div> |
| 95 | + </div> |
| 96 | +</section> |
| 97 | + |
| 98 | + |
| 99 | +<section class="section"> |
| 100 | + <div class="container has-text-centered"> |
| 101 | + <p></p> |
| 102 | + </div> |
| 103 | +</section> |
| 104 | +<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js" integrity="sha256-KbfTjB0WZ8vvXngdpJGY3Yp3xKk+tttbqClO11anCIU=" crossorigin="anonymous"></script> |
| 105 | + |
| 106 | +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/elixir.min.js"></script> |
| 107 | + |
| 108 | +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/javascript.min.js"></script> |
| 109 | + |
| 110 | +<script>hljs.initHighlightingOnLoad();</script> |
| 111 | + |
| 112 | + |
0 commit comments