Download Latest Version 0.32.1.zip (207.6 kB)
Email in envelope

Get an email when there's a new version of ElixirScript

Home / v0.27.0
Name Modified Size InfoDownloads / Week
Parent folder
elixirscript.tar.gz 2017-03-18 3.5 MB
0.27.0.tar.gz 2017-03-18 107.3 kB
0.27.0.zip 2017-03-18 167.5 kB
README.md 2017-03-18 839 Bytes
Totals: 4 Items   3.8 MB 0

[0.27.0] - 2017-03-17

Added

  • super
  • defoverridable
  • IO.inspect\1, IO.puts\1, IO.puts\2, IO.warn\1
  • Elixir.load for loading generated JavaScript modules in bundled output. Unlike Elixir.start, this will only call __load on the module and return the functions on it

    :::javascript const exports = Elixir.load(Elixir.MyApp); exports.hello();

Changed

  • -ex alias is now -e
  • A filename can be specified for output
  • To access global JavaScript functions, modules, and properties, use the JS module

    :::elixir JS.length # translates to 'length' JS.alert() # translates to 'alert()' JS.String.raw("hi") # translate to String.raw('hi') JS.console.log("hi") # translates to console.log('hi')

Fixed

  • Make sure mix compiler works in umbrella apps
Source: README.md, updated 2017-03-18