rename to core
This commit is contained in:
@@ -79,7 +79,7 @@ All E2E tests run in isolated Docker containers to ensure consistent, reproducib
|
||||
```
|
||||
gridpilot/
|
||||
├── src/
|
||||
│ ├── packages/ # Shared packages
|
||||
│ ├── core/ # Shared packages
|
||||
│ │ ├── domain/ # Core business logic (entities, value objects)
|
||||
│ │ ├── application/ # Use cases and orchestration
|
||||
│ │ ├── shared/ # Common utilities and types
|
||||
|
||||
@@ -12,7 +12,7 @@ RUN find ./node_modules -name "ts-node-dev" -print || true # Debugging line
|
||||
|
||||
# Copy apps/api and packages for development
|
||||
COPY apps/api apps/api/
|
||||
COPY packages packages/
|
||||
COPY packages core/
|
||||
COPY apps/api/tsconfig.json apps/api/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ RUN npm ci
|
||||
|
||||
# Copy apps/api and packages for building
|
||||
COPY apps/api apps/api/
|
||||
COPY packages packages/
|
||||
COPY packages core/
|
||||
COPY apps/api/tsconfig.json apps/api/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@ module.exports = {
|
||||
coverageDirectory: '../coverage',
|
||||
testRegex: '.*\\.spec\\.ts$',
|
||||
moduleNameMapper: {
|
||||
'^@gridpilot/(.*)$': '<rootDir>/../../packages/$1', // Corrected path
|
||||
'^@gridpilot/(.*)$': '<rootDir>/../../core/$1', // Corrected path
|
||||
},
|
||||
};
|
||||
|
||||
@@ -28,16 +28,16 @@
|
||||
"strictPropertyInitialization": false,
|
||||
"paths": {
|
||||
"@gridpilot/shared/*": [
|
||||
"../../packages/shared/*"
|
||||
"../../core/shared/*"
|
||||
],
|
||||
"@gridpilot/analytics/*": [
|
||||
"../../packages/analytics/*"
|
||||
"../../core/analytics/*"
|
||||
],
|
||||
"@gridpilot/analytics/domain/repositories/*": [
|
||||
"../../packages/analytics/domain/repositories/*"
|
||||
"../../core/analytics/domain/repositories/*"
|
||||
],
|
||||
"@gridpilot/analytics/domain/entities/*": [
|
||||
"../../packages/analytics/domain/entities/*"
|
||||
"../../core/analytics/domain/entities/*"
|
||||
],
|
||||
"@nestjs/testing": [
|
||||
"./node_modules/@nestjs/testing"
|
||||
|
||||
@@ -26,7 +26,7 @@ export default defineConfig({
|
||||
alias: {
|
||||
'@': resolve(__dirname, '../../'),
|
||||
'packages': resolve(__dirname, '../../packages'),
|
||||
'packages/*': resolve(__dirname, '../../packages/*'),
|
||||
'core/*': resolve(__dirname, '../../core/*'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { ipcMain } from 'electron';
|
||||
import type { BrowserWindow, IpcMainInvokeEvent } from 'electron';
|
||||
import { DIContainer } from './di-container';
|
||||
import type { HostedSessionConfig } from 'packages/automation/domain/types/HostedSessionConfig';
|
||||
import { StepId } from 'packages/automation/domain/value-objects/StepId';
|
||||
import { AuthenticationState } from 'packages/automation/domain/value-objects/AuthenticationState';
|
||||
import { ElectronCheckoutConfirmationAdapter } from 'packages/automation/infrastructure/adapters/ipc/ElectronCheckoutConfirmationAdapter';
|
||||
import type { OverlayAction } from 'packages/automation/application/ports/OverlaySyncPort';
|
||||
import type { IAutomationLifecycleEmitter } from 'packages/automation/infrastructure/adapters/IAutomationLifecycleEmitter';
|
||||
import type { HostedSessionConfig } from 'core/automation/domain/types/HostedSessionConfig';
|
||||
import { StepId } from 'core/automation/domain/value-objects/StepId';
|
||||
import { AuthenticationState } from 'core/automation/domain/value-objects/AuthenticationState';
|
||||
import { ElectronCheckoutConfirmationAdapter } from 'core/automation/infrastructure/adapters/ipc/ElectronCheckoutConfirmationAdapter';
|
||||
import type { OverlayAction } from 'core/automation/application/ports/OverlaySyncPort';
|
||||
import type { IAutomationLifecycleEmitter } from 'core/automation/infrastructure/adapters/IAutomationLifecycleEmitter';
|
||||
|
||||
let progressMonitorInterval: NodeJS.Timeout | null = null;
|
||||
let lifecycleSubscribed = false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { contextBridge, ipcRenderer } from 'electron';
|
||||
import type { HostedSessionConfig } from '../../../packages/automation/domain/types/HostedSessionConfig';
|
||||
import type { AuthenticationState } from '../../../packages/automation/domain/value-objects/AuthenticationState';
|
||||
import type { HostedSessionConfig } from '../../../core/automation/domain/types/HostedSessionConfig';
|
||||
import type { AuthenticationState } from '../../../core/automation/domain/value-objects/AuthenticationState';
|
||||
|
||||
export interface AuthStatusEvent {
|
||||
state: AuthenticationState;
|
||||
|
||||
@@ -5,8 +5,8 @@ import { LoginPrompt } from './components/LoginPrompt';
|
||||
import { BrowserModeToggle } from './components/BrowserModeToggle';
|
||||
import { CheckoutConfirmationDialog } from './components/CheckoutConfirmationDialog';
|
||||
import { RaceCreationSuccessScreen } from './components/RaceCreationSuccessScreen';
|
||||
import type { HostedSessionConfig } from '../../../packages/automation/domain/types/HostedSessionConfig';
|
||||
import type { AuthenticationState } from '../../../packages/automation/domain/value-objects/AuthenticationState';
|
||||
import type { HostedSessionConfig } from '../../../core/automation/domain/types/HostedSessionConfig';
|
||||
import type { AuthenticationState } from '../../../core/automation/domain/value-objects/AuthenticationState';
|
||||
import type { StartAutomationResponse } from '../main/preload';
|
||||
|
||||
interface SessionProgress {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import type { HostedSessionConfig } from '../../../../packages/automation/domain/types/HostedSessionConfig';
|
||||
import type { HostedSessionConfig } from '../../../../core/automation/domain/types/HostedSessionConfig';
|
||||
|
||||
interface SessionCreationFormProps {
|
||||
onSubmit: (config: HostedSessionConfig) => void;
|
||||
|
||||
@@ -12,7 +12,7 @@ RUN find ./node_modules -name "next" -print || true # Debugging line
|
||||
|
||||
# Copy apps/website and packages for development
|
||||
COPY apps/website apps/website/
|
||||
COPY packages packages/
|
||||
COPY packages core/
|
||||
COPY apps/website/tsconfig.json apps/website/
|
||||
COPY scripts scripts/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
@@ -8,7 +8,7 @@ RUN npm ci
|
||||
|
||||
# Copy apps/website, packages, and config for building
|
||||
COPY apps/website apps/website/
|
||||
COPY packages packages/
|
||||
COPY packages core/
|
||||
COPY apps/website/tsconfig.json apps/website/
|
||||
COPY scripts scripts/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@faker-js/faker": "^9.2.0",
|
||||
"@gridpilot/identity": "file:../../packages/identity",
|
||||
"@gridpilot/notifications": "file:../../packages/notifications",
|
||||
"@gridpilot/racing": "file:../../packages/racing",
|
||||
"@gridpilot/social": "file:../../packages/social",
|
||||
"@gridpilot/testing-support": "file:../../packages/testing-support",
|
||||
"@gridpilot/identity": "file:../../core/identity",
|
||||
"@gridpilot/notifications": "file:../../core/notifications",
|
||||
"@gridpilot/racing": "file:../../core/racing",
|
||||
"@gridpilot/social": "file:../../core/social",
|
||||
"@gridpilot/testing-support": "file:../../core/testing-support",
|
||||
"@vercel/kv": "^3.0.0",
|
||||
"framer-motion": "^12.23.25",
|
||||
"lucide-react": "^0.555.0",
|
||||
|
||||
@@ -18,23 +18,23 @@
|
||||
"@/lib/*": ["./lib/*"],
|
||||
"@/components/*": ["./components/*"],
|
||||
"@/app/*": ["./app/*"],
|
||||
"@gridpilot/identity": ["../../packages/identity/index.ts"],
|
||||
"@gridpilot/identity/*": ["../../packages/identity/*"],
|
||||
"@gridpilot/racing": ["../../packages/racing/index.ts"],
|
||||
"@gridpilot/racing/*": ["../../packages/racing/*"],
|
||||
"@gridpilot/social": ["../../packages/social/index.ts"],
|
||||
"@gridpilot/social/*": ["../../packages/social/*"],
|
||||
"@gridpilot/testing-support": ["../../packages/testing-support/index.ts"],
|
||||
"@gridpilot/testing-support/*": ["../../packages/testing-support/*"],
|
||||
"@gridpilot/media": ["../../packages/media/index.ts"],
|
||||
"@gridpilot/media/*": ["../../packages/media/*"],
|
||||
"@gridpilot/shared": ["../../packages/shared/index.ts"],
|
||||
"@gridpilot/shared/application": ["../../packages/shared/application"],
|
||||
"@gridpilot/shared/application/*": ["../../packages/shared/application/*"],
|
||||
"@gridpilot/shared/presentation": ["../../packages/shared/presentation"],
|
||||
"@gridpilot/shared/presentation/*": ["../../packages/shared/presentation/*"],
|
||||
"@gridpilot/shared/domain": ["../../packages/shared/domain"],
|
||||
"@gridpilot/shared/errors": ["../../packages/shared/errors"]
|
||||
"@gridpilot/identity": ["../../core/identity/index.ts"],
|
||||
"@gridpilot/identity/*": ["../../core/identity/*"],
|
||||
"@gridpilot/racing": ["../../core/racing/index.ts"],
|
||||
"@gridpilot/racing/*": ["../../core/racing/*"],
|
||||
"@gridpilot/social": ["../../core/social/index.ts"],
|
||||
"@gridpilot/social/*": ["../../core/social/*"],
|
||||
"@gridpilot/testing-support": ["../../core/testing-support/index.ts"],
|
||||
"@gridpilot/testing-support/*": ["../../core/testing-support/*"],
|
||||
"@gridpilot/media": ["../../core/media/index.ts"],
|
||||
"@gridpilot/media/*": ["../../core/media/*"],
|
||||
"@gridpilot/shared": ["../../core/shared/index.ts"],
|
||||
"@gridpilot/shared/application": ["../../core/shared/application"],
|
||||
"@gridpilot/shared/application/*": ["../../core/shared/application/*"],
|
||||
"@gridpilot/shared/presentation": ["../../core/shared/presentation"],
|
||||
"@gridpilot/shared/presentation/*": ["../../core/shared/presentation/*"],
|
||||
"@gridpilot/shared/domain": ["../../core/shared/domain"],
|
||||
"@gridpilot/shared/errors": ["../../core/shared/errors"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user