Skip to content

@kekkai/blueprint / defineBlueprint

Function: defineBlueprint() ​

defineBlueprint(config): Blueprint

Defined in: src/operational-contract/validation-errors.ts:189

Author a Blueprint. Validates referential integrity up front and returns a current config unchanged. A supported 3.2 layer shape is normalized to its equivalent 4.0 layer fields for the upgrade path.

Parameters ​

config ​

Blueprint

Returns ​

Blueprint

Example ​

ts
export default defineBlueprint({
  framework: 'auto',
  architecture: {
    alias: '~app',
    layers: [
      { name: 'components', does: 'Reusable UI', layout: 'folder', entry: 'index' },
      { name: 'hooks', does: 'Adapts server and shared state', layout: 'file' },
      { name: 'services', does: 'Network primitives', owns: ['axios', { global: 'fetch' }] },
    ],
  },
});