First Application POC (#14382)

Quick proof of concept for twenty-apps + twenty-cli, with local
development / hot reload

Let's discuss it!



https://github.com/user-attachments/assets/c6789936-cd5f-4110-a265-863a6ac1af2d
This commit is contained in:
Félix Malfait
2025-09-10 15:12:38 +02:00
committed by GitHub
parent 9a05daa624
commit 30a2164980
79 changed files with 5515 additions and 365 deletions
+28
View File
@@ -0,0 +1,28 @@
import chalk from 'chalk';
import { ApiService } from '../services/api.service';
import { loadAppManifest } from './app-manifest-loader';
export const syncApp = async (
appPath: string,
apiService: ApiService,
): Promise<any> => {
const manifest = await loadAppManifest(appPath);
try {
const result = await apiService.syncApplication(manifest);
if (result.success) {
console.log(chalk.green('✅ Application synced successfully'));
} else {
console.error(chalk.red('❌ Sync failed:'), result.error);
}
return result;
} catch (error) {
console.error(
chalk.red('Sync error:'),
error instanceof Error ? error.message : error,
);
throw error;
}
};