Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 747 Bytes

File metadata and controls

45 lines (33 loc) · 747 Bytes

安装

npm install -g rescript

新建项目:

git clone https://github.com/rescript-lang/rescript-project-template
cd rescript-project-template
npm install
npm run build
node src/Demo.bs.js

命令行工具/编译器:

vailable flags
-v, -version  display version number
-h, -help     display help 
Subcommands:
    build    
    clean
    format
    convert
    help
Run rescript subcommand -h for more details,
For example:
    rescript build -h
    rescript format -h
The default `rescript` is equivalent to `rescript build` subcommand

安装

编译器:ocaml version 4.12.0

包管理器opam:https://ocaml.org/docs/install.html

包清单: https://github.com/ocaml-community/awesome-ocaml