Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 717 Bytes

File metadata and controls

51 lines (34 loc) · 717 Bytes

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

Contributor documentation

Decode JSON

Add to bs-dev-dependencies:

"dev-dependencies": ["@rescript/tools"]
// Read JSON file and parse with `JSON.parseOrThrow`
json->RescriptTools.Docgen.decodeFromJson