UNPKG

708 BMarkdownView Raw
1# Ride-js
2Javascript wrapper for [ride language](https://docs.wavesplatform.com/en/smart-contracts/ride-language/ride-language.html) compiler
3
4This 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
10sbt 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