0.0.25 • Published 2 years ago
@oats-ts/generator v0.0.25
@oats-ts/generator
This package contains the generator harness for anything you might want to generate with oats. The generator expects the following configuration:
import { generate, ContentReader, ContentValidator, CodeGenerator, ContentWriter } from '@oats-ts/generator'
// Responsible for reading the your content and ensuring it's structurally correct.
const reader: ContentReader<R> = null
// Responsible for determining if your content is semantically valid. Runs after reader.
const validator: ContentValidator<R> = null
// Responsible for generating your modules. Uses the validated content.
const generator1: CodeGenerator<R, G> = null
const generator2: CodeGenerator<R, G> = null
// Responsible for writing the generated modules to disk.
const writer: ContentWriter<G> = null
// In an async context.
await generate({
// Set to false if you don't want logging.
log: true,
reader: reader,
validator: validator,
generators: [
generator1,
generator2
],
writer: writer
}
0.0.25
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.22
2 years ago
0.0.23
2 years ago
0.0.24
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
3 years ago
0.0.3
3 years ago
0.0.4
3 years ago
0.0.2
3 years ago
0.0.0
3 years ago