- [x] implement server framework plugin config - [x] new @mcflyjs/fastify package - [x] update readme re: pivot & target state - [x] new basic template Reviewed-on: https://git.ayo.run/ayo/mcfly/pulls/2 Co-authored-by: Ayo <ayo@ayco.io> Co-committed-by: Ayo <ayo@ayco.io>
21 lines
410 B
TypeScript
21 lines
410 B
TypeScript
export type McFlyConfig = {
|
|
server: McFlyServer
|
|
components?: 'js' | 'lit'
|
|
plugins?: McFlyPlugin[]
|
|
}
|
|
|
|
/**
|
|
* Define the configuration for the McFly project
|
|
* @param {McFlyConfig} config
|
|
* @returns {function(): McFlyConfig}e
|
|
*/
|
|
export function defineConfig(config: McFlyConfig) {
|
|
return () => config
|
|
}
|
|
|
|
/**
|
|
* TODO: finalize Plugin type
|
|
*/
|
|
export type McFlyPlugin = {}
|
|
|
|
export type McFlyServer = any
|