
* feat: move defineMcFlyConfig to @mcflyjs/config * feat: move defineMcFlyConfig to config package * feat: programmatically build nitro dev server * chore: bump versions * feat: spread nitro config if exists * chore: use nitro build programmatically * feat: use nitro programmatically in prepare command * feat: expose types for NitroConfig & McFlyConfig * feat: use c12 to resolve mcfly config * fix: too many symlinks * chore: skip tests for now * test: cheating * test: cheating * chore: update pnpm-lock
20 lines
526 B
JavaScript
20 lines
526 B
JavaScript
/**
|
|
* @typedef {import('nitropack').NitroConfig} NitroConfig
|
|
* @typedef {object} McFlyConfig
|
|
* @property {'js' | 'lit'} components
|
|
* Type of components used:
|
|
* - `'js'` = Vanilla
|
|
* - `'lit'` = Lit (in-progress)
|
|
* - `'enhance'` = Enhance (in-progress)
|
|
* - `'webc'` = WebC (in-progress)
|
|
* @property {NitroConfig} nitro
|
|
*/
|
|
|
|
/**
|
|
* Define the configuration for the McFly project
|
|
* @param {McFlyConfig} config
|
|
* @returns {function(): McFlyConfig}
|
|
*/
|
|
export function defineMcFlyConfig(config) {
|
|
return () => config
|
|
}
|