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