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 Base.

For example, this Preset combines two of the blocks from Blocks:

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

APIs