@rescript/tools
v0.6.6
Published
ReScript Tools
Downloads
1,132
Readme
ReScript Tools
Install
npm install --save-dev @rescript/tools
CLI Usage
rescript-tools --help
Generate documentation
Print JSON:
rescript-tools doc src/EntryPointLibFile.res
Write JSON:
rescript-tools doc src/EntryPointLibFile.res > doc.json
Reanalyze
rescript-tools reanalyze --help
Decode JSON
Add to bs-dev-dependencies
:
"bs-dev-dependencies": ["@rescript/tools"]
// Read JSON file and parse with `Js.Json.parseExn`
json->RescriptTools.Docgen.decodeFromJson