Skip to content

Commit

Permalink
Updated documentation about Scala.js
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Mar 5, 2014
1 parent 14e87bd commit 0ab232f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion source/documentation/assets.html.md.erb
Expand Up @@ -180,10 +180,34 @@ Activate scalaJS project settings. Following version may be old. Check the lates
*/
```

Easy to start! Just put *.scala files under `WEB-INF/assets/scala`:
### How to work with Scala.js

Easy to start!

#### Terminal A

Just invoke Skinny app.

```sh
./skinny run
````

#### Terminal B

Invoke Scala.js assets watcher process (which is similar to grunt watch).

```sh
./skinny scalajs:watch
```

#### Put Scala code into assets directory

Just put *.scala files under `WEB-INF/assets/scala`:

You can access the latest transformed JS file at `http://localhost:8080/assets/js/application.js`.

Or when using only `scalajs:watch`, it's also possible to acces `src/main/webapp/assets/js/application-*.js` directly.


<hr/>
## Adding Other Compilers
Expand Down

0 comments on commit 0ab232f

Please sign in to comment.