You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GettingStarted.md
+6-25Lines changed: 6 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ The intent of this guide is to get you started with ElixirScript. It will give y
9
9
10
10
### Escript
11
11
12
+
**OSX**: Elixirscript can be installed via homebrew `brew install elixirscript`. For everyone else, plase read below
13
+
12
14
* Step 1: Get escript
13
15
14
16
You can download the elixirscript escript from the [releases page on github](https://github.com/bryanjos/elixirscript/releases). It is a tar file named elixirscript.tar.gz.
@@ -165,33 +167,12 @@ JS.import A, "a" #translates to "import {default as A} from 'a'"
165
167
JS.import [A, B, C], "a" #translates to "import {A, B, C} from 'a'"
166
168
```
167
169
170
+
#### Frontend Project Boilerplate
171
+
172
+
There is an [elixirscript frontend boilerplate project](https://github.com/bryanjos/elixirscript-project-boilerplate). This setup uses gulp and brunch to build and bundle assets.
173
+
168
174
169
175
#### ElixirScript-Brunch
170
176
171
177
There is an Brunch plugin, [ElixirScript-Brunch](https://www.npmjs.com/package/elixirscript-brunch).
172
178
There are instructions there on how to use it with Phoenix.
173
-
174
-
#### Gulp
175
-
176
-
There is no gulp plugin just yet, but below is an example of how to make a gulp
177
-
task that will work with it.
178
-
179
-
```javascript
180
-
var gulp = require('gulp');
181
-
var exec = require('child_process').exec;
182
-
var babel = require('gulp-babel');
183
-
184
-
//Calls out to the elixirscript compiler and places the output in src/js
0 commit comments