IF Commons GitHub

templates/mod

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-host FR-003

The templates of IF Workspaces (commons 0003-host FR-003 to FR-007, FR-014, FR-022, FR-023): typed functions from the manifest's data to generated files. TEMPLATES is the list, a value the compiler checks; renderAll runs them all, checks the files together (no two paths that are one after case folding, none inside a repository's working tree) and gives them in the order of their paths, so that the same data gives the same files on every operating system.

Source: commons/ergonex/src/templates/mod.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

renderAllfunction
function renderAll(data: TemplateData): Result<readonly GeneratedFile[], readonly GenerateError[]>

Every generated file the data gives, or every reason one was refused.

Imported by 10 tests of the run (10 passed, 0 failed): the library's results

TEMPLATESconstno test imports it
const TEMPLATES: readonly Template[]

Every template, in the order of their generators.

Titles, headings, exports, tables, columns and requirements. Esc closes.