@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
emitAppOptionsThe scan as the fronds.ts an author would write: one frond() call per frond.
adaptersOfThe adapter names this project depends on — empty when it has no package.json to read.
crossFrondImportsEvery relative import that resolves outside its own frond.
handlerDeclarationsWhat a handler file declares besides its handler: a rule belongs in rules/, a service in services/.
outsideConventionsWhat sits in a frond outside its convention directories.
writeDerivedWhat a host writes when it starts: the fronds, the facade and the names, from one scan.
writeAppOptionsWrites .fougere/fronds.generated.ts from the scan, for a project that wrote no fronds.ts.
scannedAppOptionsThe fronds and the vocabulary the scan writes, read back — narrowed to only, the way a host reads it.
compileProjectTranspiles 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
Built with Fougere and Nuxt, hosted on GitHub Pages.