Skip to content

Presets

A Preset defines a group of Blocks that can be put together to form a repository base. Each Preset includes of a blocks array consisting of Blocks generated by the same parent Schema.

For example, this Preset combines all the blocks from Blocks:

import { blockAllContributors } from "./blockAllContributors";
import { blockNvmrc } from "./blockNvmrc";
import { blockPrettier } from "./blockPrettier";
import { blockREADME } from "./blockREADME";
import { schema } from "./schemas";
export const presetExampleBlocks = schema.createPreset({
blocks: [
blockAllContributors(),
blockREADME(),
blockPrettier(),
blockNvmrc(),
],
});