Skip to content

Presets

A Preset defines a group of Blocks that can be put together to form a repository base. Each Preset includes 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({
about: {
name: 'Example',
},
blocks: [blockNvmrc, blockREADME],
});

A template running with that preset would create both an .nvmrc file and a README.md file.