//#region imports
import { TaonBaseContext, Taon } from 'taon/lib';
import { config, taonPackageName } from 'tnp-core/lib';
import { getBaseCliWorkerDatabaseConfig } from 'tnp-helpers/lib';
import { MIGRATIONS_CLASSES_FOR_TaonProjectsContext } from '../../../migrations';
import { TaonBuild } from './taon-build.entity';
import { TaonEnv } from './taon-env.entity';
import { TaonIsomorphicPkgsDetectionRepository } from './taon-isomorphic-pkgs-detection.repository';
import { TaonProject } from './taon-project.entity';
import { TaonProjectsController } from './taon.controller';
//#endregion
export const TaonProjectsContextTemplate = Taon.createContextTemplate(() => ({
    contextName: 'TaonProjectsContext',
    appId: 'dev.taon.projects.worker',
    contexts: { TaonBaseContext },
    controllers: { TaonProjectsController },
    repositories: { TaonIsomorphicPkgsDetectionRepository },
    entities: { TaonProject, TaonBuild, TaonEnv },
    migrations: { ...MIGRATIONS_CLASSES_FOR_TaonProjectsContext },
    skipWritingServerRoutes: taonPackageName === config.frameworkName,
    ...getBaseCliWorkerDatabaseConfig('taon-projects-worker', 'DROP_DB+MIGRATIONS'),
    logs: {
    // framework: true,
    },
}));
//# sourceMappingURL=taon.context.js.map