apexdocs
apexdocs copied to clipboard
ESM import example
@cesarParra - love your work.
I'm looking to incorporate apexDocs into a CI action I'm building in ESM / node. I'd like to import Apexdoxs and execute the doc generation "in-band" rather than shelling out to the cli to run apex docs. I'm struggling, however, with how and what I can import.
I've tried
import Apexdocs from '@cparra/apexdocs';
and while that will import something... it doesn't have the .generate() method on it I was expecting from the cli.
I'm sure i'm missing something obvious, but I was wondering if you could provide an example of how to import Apex docs into a typescript / esm project as a library and call it's generate method? Please?