Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shivamka1/parser-playground
Parser playground app to demo usage of Scala library in javascript ecosystem using Scala.js
https://github.com/shivamka1/parser-playground
Last synced: about 7 hours ago
JSON representation
Parser playground app to demo usage of Scala library in javascript ecosystem using Scala.js
- Host: GitHub
- URL: https://github.com/shivamka1/parser-playground
- Owner: shivamka1
- License: mit
- Created: 2020-11-30T20:51:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-05T05:07:23.000Z (about 4 years ago)
- Last Synced: 2025-01-13T06:20:58.530Z (6 days ago)
- Language: Scala
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parser-playground
[Parser playground app](https://iamsmkr.github.io/parser-playground/) to demo usage of Scala library in javascript ecosystem using Scala.js## Dev
1. To generate a fast optimized compiled version of the javascript file execute following command from Scala.js sbt plugin. The javascript file is generated as `js/target/scala-2.12/simple-arithmetic-parser-fastopt.js````
$ sbt> fastOptJS
```2. Access `index-dev.html` on your browser to launch the app
## Deploy
1. To generate fully optimized version of the javascript file execute the following command from Scala.js sbt plugin. The javascript file is generated as `js/target/scala-2.12/simple-arithmetic-parser-opt.js`. Note that this can take a while on a larger project, which is why we typically use `fastOptJS` during development.```
$ sbt> fullOptJS
```2. Access `index.html` on your browser to launch the app
## Refer
1. [Scala.js Basic tutorial](https://www.scala-js.org/doc/tutorial/basic/)
2. [Scala.js Cross Building](https://www.scala-js.org/doc/project/cross-build.html)