resFactory / factory

Resource Factory is a universal approach to originating, refining, and rendering Markdown, HTML, type-safe SQL, or other assets that could comprise static sites or engineering artifacts.
GNU Affero General Public License v3.0
0 stars 3 forks source link

Add subject areas concept to resources to help reduce generator time #82

Open shah opened 2 years ago

shah commented 2 years ago

Because not all resources need to be generated all the time, add a subject area or namespace concept that can be configured on a per-resource or per-resource-originator basis that the generator can use to filter or select which resources should be part of the publication process.

This could be accomplished in a few ways:

export interface SubjectSupplier<Area> extends Namespace<Area> {
    readonly subject: string;
}

export interface SubjectAreaSupplier<Area> {
    readonly subjectArea: SubjectSupplier<Area>;
}