Merge twenty-cli into twenty-sdk (#16150)
- Moves twenty-cli content into twenty-sdk - add a new twenty-sdk:0.1.0 version - this new twenty-sdk exports a cli command called 'twenty' (like twenty-cli before) - deprecates twenty-cli - simplify app init command base-project - use `twenty-sdk:0.1.0` in base project - move the "twenty-sdk/application" barrel to "twenty-sdk" - add `create-twenty-app` package <img width="1512" height="919" alt="image" src="https://github.com/user-attachments/assets/007bef45-4e71-419a-9213-cebed376adbf" /> <img width="1506" height="929" alt="image" src="https://github.com/user-attachments/assets/3de2fec6-1624-4923-ae13-f4e1cf165eb5" />
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { type SyncableEntityOptions } from '@/application/syncable-entity-options.type';
|
||||
import { type SyncableEntityOptions } from './syncable-entity-options.type';
|
||||
|
||||
type ApplicationVariable = SyncableEntityOptions & {
|
||||
value?: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type SyncableEntityOptions } from '@/application/syncable-entity-options.type';
|
||||
import { type SyncableEntityOptions } from '../syncable-entity-options.type';
|
||||
|
||||
import {
|
||||
type FieldMetadataType,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type SyncableEntityOptions } from '@/application/syncable-entity-options.type';
|
||||
import { type SyncableEntityOptions } from '../syncable-entity-options.type';
|
||||
|
||||
import {
|
||||
type RelationOnDeleteAction,
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
import { type SyncableEntityOptions } from '@/application/syncable-entity-options.type';
|
||||
import { type SyncableEntityOptions } from './syncable-entity-options.type';
|
||||
|
||||
type RouteTrigger = {
|
||||
type: 'route';
|
||||
@@ -17,12 +17,12 @@ type DatabaseEventTrigger = {
|
||||
eventName: string;
|
||||
};
|
||||
|
||||
type ServerlessFunctionTrigger = SyncableEntityOptions &
|
||||
type FunctionTrigger = SyncableEntityOptions &
|
||||
(RouteTrigger | CronTrigger | DatabaseEventTrigger);
|
||||
|
||||
export type ServerlessFunctionConfig = SyncableEntityOptions & {
|
||||
export type FunctionConfig = SyncableEntityOptions & {
|
||||
name?: string;
|
||||
description?: string;
|
||||
timeoutSeconds?: number;
|
||||
triggers?: ServerlessFunctionTrigger[];
|
||||
triggers?: FunctionTrigger[];
|
||||
};
|
||||
@@ -23,7 +23,7 @@ export { Field } from './field-metadata/field.decorator';
|
||||
export { OnDeleteAction } from './field-metadata/on-delete-action';
|
||||
export { RelationType } from './field-metadata/relation-type';
|
||||
export { Relation } from './field-metadata/relation.decorator';
|
||||
export type { FunctionConfig } from './function-config';
|
||||
export { Object } from './object-metadata/object.decorator';
|
||||
export { STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from './object-metadata/standard-object-ids';
|
||||
export type { ServerlessFunctionConfig } from './serverless-function-config';
|
||||
export type { SyncableEntityOptions } from './syncable-entity-options.type';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type SyncableEntityOptions } from '@/application/syncable-entity-options.type';
|
||||
import { type SyncableEntityOptions } from '../syncable-entity-options.type';
|
||||
|
||||
type ObjectMetadataOptions = SyncableEntityOptions & {
|
||||
nameSingular: string;
|
||||
|
||||
Reference in New Issue
Block a user