@kekkai/blueprint / defineBlueprint
Function: defineBlueprint()
defineBlueprint(
config):Blueprint
Defined in: config/defineBlueprint.ts:39
Author a Blueprint. Validates referential integrity up front, then returns the config unchanged — the single source every emitter compiles from.
Parameters
config
Returns
Example
ts
export default defineBlueprint({
framework: 'auto',
architecture: {
alias: '~app',
layers: [
{ name: 'components', does: 'Reusable, presentational UI', mustNot: ['import services'] },
{ name: 'hooks', does: 'Adapts server and shared state' },
{ name: 'services', does: 'Network primitives', owns: ['axios', { global: 'fetch' }] },
],
flow: 'one-way',
module: { layout: 'folder', entry: 'index', private: ['hooks', 'styles', 'types'] },
},
});