d537d941a7
## Summary Adds `app:build` command as a one-shot version of `app:dev` - builds manifest, functions, and front components once then exits (no watching). **Changes:** - Added `watch` option to `FunctionsWatcher` and `FrontComponentsWatcher` to support both watch and one-shot modes - Created `AppBuildCommand` reusing the same build logic as `app:dev` with `watch: false` - Added integration tests for `app:build` on both `rich-app` and `root-app` - Updated manifest types: `handlerPath` → `sourceHandlerPath` + `builtHandlerPath`, `componentPath` → `sourceComponentPath` + `builtComponentPath` - Updated test app `package.json` scripts to match `create-twenty-app` template
13 lines
349 B
TypeScript
13 lines
349 B
TypeScript
import { type FrontComponentManifest } from 'twenty-shared/application';
|
|
|
|
export type FrontComponentType = React.ComponentType<any>;
|
|
|
|
export type FrontComponentConfig = Omit<
|
|
FrontComponentManifest,
|
|
'sourceComponentPath' | 'builtComponentPath' | 'componentName'
|
|
> & {
|
|
name?: string;
|
|
description?: string;
|
|
component: FrontComponentType;
|
|
};
|