https://github.com/wavesplatform/ride-js
https://github.com/wavesplatform/ride-js
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wavesplatform/ride-js
- Owner: wavesplatform
- License: mit
- Created: 2018-07-13T09:19:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T14:31:26.000Z (over 2 years ago)
- Last Synced: 2025-05-29T23:38:10.355Z (11 months ago)
- Language: TypeScript
- Size: 35.3 MB
- Stars: 6
- Watchers: 6
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Ride-js
Javascript wrapper for [ride language](https://docs.wavesplatform.com/en/smart-contracts/ride-language/ride-language.html) compiler
This repository also contains version of the compiler build with [scala-js](https://www.scala-js.org/)
### To update compiler version in this wrapper:
* Clone [waves](https://github.com/wavesplatform/waves) project
* Checkout to branch of your choice to build new compiler version
* Build js compiler using sbt task
```sbt
sbt langJS/fullOptJS
sbt replJS/fullOptJS
```
* From `waves` project copy ```./lang/js/target/lang-opt.js``` to ```./src``` of `ride-js`
* From `waves` project copy ```./repl/js/target/repl-opt.js``` to ```./src``` of `ride-js`
# Workaround
If there is error with compiling try
```sbt
sbt clean && sbt lang/clean
```
### Tasks
* `npm run build` builds minified version that can be included as script tag. Add RideJS variable to global scope