Kind: Class
Source: atloria-monorepo/apps/cli/src/generators/site.generator.ts
Static Site Generator
Methods
| Method | Signature | Returns |
|---|---|---|
generate | generate(metadata: ProjectMetadata, entities: Entity[], relationships: Relationship[]) | Promise<void> |
Where it refuses work
SiteGeneratorstops the work with an early return when!fs.existsSync(uiCoreBundlePath).SiteGeneratorstops the work with an early return whenhasChildren.SiteGeneratorstops the work with an early return when!filePath || !fs.existsSync(filePath).SiteGeneratorstops the work with an early return when!str || typeof str !== 'string'.
When something fails
SiteGeneratorhandles failure in 3 places: it discards it silently in 2, and turns it into a return value in 1.
Was this page helpful?