1 | # Ride-js
|
2 | Javascript wrapper for [ride language](https://docs.wavesplatform.com/en/smart-contracts/ride-language/ride-language.html) compiler
|
3 |
|
4 | This repository also contains version of the compiler build with [scala-js](https://www.scala-js.org/)
|
5 | ### To update compiler version in this wrapper:
|
6 | * Clone [waves](https://github.com/wavesplatform/waves) project
|
7 | * Checkout to branch of your choice to build new compiler version
|
8 | * Build js compiler using sbt task
|
9 | ```sbt
|
10 | sbt langJS/fullOptJS
|
11 | ```
|
12 | * From `waves` project copy ```./lang/js/target/lang-opt.js``` to ```./src``` of `ride-js`
|
13 |
|
14 | ### Tasks
|
15 | * `npm run build` builds minified version that can be included as script tag. Add RideJS variable to global scope |
\ | No newline at end of file |