Skip to content

Commit aad241d

Browse files
committed
Update GettingStarted.md
1 parent 658f17c commit aad241d

1 file changed

Lines changed: 6 additions & 25 deletions

File tree

GettingStarted.md

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ The intent of this guide is to get you started with ElixirScript. It will give y
99

1010
### Escript
1111

12+
**OSX**: Elixirscript can be installed via homebrew `brew install elixirscript`. For everyone else, plase read below
13+
1214
* Step 1: Get escript
1315

1416
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'"
165167
JS.import [A, B, C], "a" #translates to "import {A, B, C} from 'a'"
166168
```
167169
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+
168174
169175
#### ElixirScript-Brunch
170176
171177
There is an Brunch plugin, [ElixirScript-Brunch](https://www.npmjs.com/package/elixirscript-brunch).
172178
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
185-
gulp.task('build-exjs', function(cb) {
186-
exec('elixirscript "' + exjsSrc + '" -o ' + "src/js", function (err, stdout, stderr) {
187-
cb(err);
188-
});
189-
});
190-
191-
// A task to turn the es6 output from build-exjs to es5
192-
gulp.task('build-js', ['build-exjs'], function() {
193-
return gulp.src(jsSrc)
194-
.pipe(babel())
195-
.pipe(gulp.dest(jsDest));
196-
});
197-
```

0 commit comments

Comments
 (0)