mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 07:21:43 +00:00
[app] Add support ReasonML/Rescript #77
This commit is contained in:
parent
424769d1d5
commit
008f0044e3
|
@ -34,8 +34,7 @@ Dual license notice: The default license for this project is GPL 3.0. However, i
|
||||||
- [Includes binaries](https://github.com/gnh1201/welsonjs/blob/master/bin/README.MD)
|
- [Includes binaries](https://github.com/gnh1201/welsonjs/blob/master/bin/README.MD)
|
||||||
- [module.exports](https://nodejs.org/en/knowledge/getting-started/what-is-require/), CommonJS, UMD compatibility
|
- [module.exports](https://nodejs.org/en/knowledge/getting-started/what-is-require/), CommonJS, UMD compatibility
|
||||||
- [NPM](https://www.npmjs.com/) compatibility
|
- [NPM](https://www.npmjs.com/) compatibility
|
||||||
- [CoffeeScript 2](https://coffeescript.org/)/[LiveScript](https://livescript.net/) compatibility
|
- Pre-included transpiler - e.g. [TypeScript](https://www.typescriptlang.org/), [CoffeeScript 2](https://coffeescript.org/), [LiveScript](https://livescript.net/), [Rescript](https://rescript-lang.org/)
|
||||||
- [TypeScript](https://www.typescriptlang.org/) compatibility
|
|
||||||
- Ready to use on Windows machine immediately. No require additional softwares installation.
|
- Ready to use on Windows machine immediately. No require additional softwares installation.
|
||||||
|
|
||||||
## Included libraries
|
## Included libraries
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
let greet = (name) => "Hello " ++ name
|
let greet = (name) => "Hello " ++ name
|
||||||
let add = (x, y, z) => x + y + z
|
let add = (x, y, z) => x + y + z
|
||||||
|
|
||||||
Js.log(greet("world!")) // "Hello world!"
|
let main = (args) => {
|
||||||
Js.log(add(1, 2, 3)) // 6
|
Js.log(greet("world!")) // "Hello world!"
|
||||||
|
Js.log(add(1, 2, 3)) // 6
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user