@fougere/compiler
The scan: Fougere reading a project's source to produce the descriptors core boots from. Needs a filesystem and a TypeScript program.
Entries: @fougere/compiler
What you import
| name | |
|---|---|
scanProject | |
emitAppOptions | The scan as the fronds.ts an author would write: one frond() call per frond. |
adaptersOf | The adapter names this project depends on — empty when it has no package.json to read. |
crossFrondImports | Every relative import that resolves outside its own frond. |
handlerDeclarations | What a handler file declares besides its handler: a rule belongs in rules/, a service in services/. |
outsideConventions | What sits in a frond outside its convention directories. |
writeDerived | What a host writes when it starts: the fronds, the facade and the names, from one scan. |
writeAppOptions | Writes .fougere/fronds.generated.ts from the scan, for a project that wrote no fronds.ts. |
scannedAppOptions | The fronds and the vocabulary the scan writes, read back — narrowed to only, the way a host reads it. |
compileProject | Transpiles the files the config and the statement reach into out, at the paths they had under root. |
Types
TypeScript types only — they do not run. Import them with import type to type your own code: a variable, a parameter, an option object.
| name | |
|---|---|
Compiled |