Move src/ → apps/server/ and packages/web/ → apps/web/ to adopt standard monorepo conventions (apps/ for runnable apps, packages/ for reusable libraries). Update all config files, shared package imports, test fixtures, and documentation to reflect new paths. Key fixes: - Update workspace config to ["apps/*", "packages/*"] - Update tsconfig.json rootDir/include for apps/server/ - Add apps/web/** to vitest exclude list - Update drizzle.config.ts schema path - Fix ensure-schema.ts migration path detection (3 levels up in dev, 2 levels up in dist) - Fix tests/integration/cli-server.test.ts import paths - Update packages/shared imports to apps/server/ paths - Update all docs/ files with new paths
33 lines
729 B
TypeScript
33 lines
729 B
TypeScript
/**
|
|
* Preview Module — Barrel Exports
|
|
*/
|
|
|
|
export { PreviewManager } from './manager.js';
|
|
export { discoverConfig, parseCwPreviewConfig } from './config-reader.js';
|
|
export {
|
|
generateComposeFile,
|
|
generateCaddyfile,
|
|
generateLabels,
|
|
} from './compose-generator.js';
|
|
export {
|
|
isDockerAvailable,
|
|
composeUp,
|
|
composeDown,
|
|
composePs,
|
|
listPreviewProjects,
|
|
getContainerLabels,
|
|
} from './docker-client.js';
|
|
export { waitForHealthy } from './health-checker.js';
|
|
export { allocatePort } from './port-allocator.js';
|
|
export type {
|
|
PreviewConfig,
|
|
PreviewServiceConfig,
|
|
PreviewStatus,
|
|
StartPreviewOptions,
|
|
HealthResult,
|
|
} from './types.js';
|
|
export {
|
|
PREVIEW_LABELS,
|
|
COMPOSE_PROJECT_PREFIX,
|
|
} from './types.js';
|