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/
|
gridpilot/
|
||||||
├── src/
|
├── src/
|
||||||
│ ├── packages/ # Shared packages
|
│ ├── core/ # Shared packages
|
||||||
│ │ ├── domain/ # Core business logic (entities, value objects)
|
│ │ ├── domain/ # Core business logic (entities, value objects)
|
||||||
│ │ ├── application/ # Use cases and orchestration
|
│ │ ├── application/ # Use cases and orchestration
|
||||||
│ │ ├── shared/ # Common utilities and types
|
│ │ ├── 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 and packages for development
|
||||||
COPY apps/api apps/api/
|
COPY apps/api apps/api/
|
||||||
COPY packages packages/
|
COPY packages core/
|
||||||
COPY apps/api/tsconfig.json apps/api/
|
COPY apps/api/tsconfig.json apps/api/
|
||||||
COPY tsconfig.base.json ./
|
COPY tsconfig.base.json ./
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ RUN npm ci
|
|||||||
|
|
||||||
# Copy apps/api and packages for building
|
# Copy apps/api and packages for building
|
||||||
COPY apps/api apps/api/
|
COPY apps/api apps/api/
|
||||||
COPY packages packages/
|
COPY packages core/
|
||||||
COPY apps/api/tsconfig.json apps/api/
|
COPY apps/api/tsconfig.json apps/api/
|
||||||
COPY tsconfig.base.json ./
|
COPY tsconfig.base.json ./
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,6 @@ module.exports = {
|
|||||||
coverageDirectory: '../coverage',
|
coverageDirectory: '../coverage',
|
||||||
testRegex: '.*\\.spec\\.ts$',
|
testRegex: '.*\\.spec\\.ts$',
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^@gridpilot/(.*)$': '<rootDir>/../../packages/$1', // Corrected path
|
'^@gridpilot/(.*)$': '<rootDir>/../../core/$1', // Corrected path
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,16 +28,16 @@
|
|||||||
"strictPropertyInitialization": false,
|
"strictPropertyInitialization": false,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@gridpilot/shared/*": [
|
"@gridpilot/shared/*": [
|
||||||
"../../packages/shared/*"
|
"../../core/shared/*"
|
||||||
],
|
],
|
||||||
"@gridpilot/analytics/*": [
|
"@gridpilot/analytics/*": [
|
||||||
"../../packages/analytics/*"
|
"../../core/analytics/*"
|
||||||
],
|
],
|
||||||
"@gridpilot/analytics/domain/repositories/*": [
|
"@gridpilot/analytics/domain/repositories/*": [
|
||||||
"../../packages/analytics/domain/repositories/*"
|
"../../core/analytics/domain/repositories/*"
|
||||||
],
|
],
|
||||||
"@gridpilot/analytics/domain/entities/*": [
|
"@gridpilot/analytics/domain/entities/*": [
|
||||||
"../../packages/analytics/domain/entities/*"
|
"../../core/analytics/domain/entities/*"
|
||||||
],
|
],
|
||||||
"@nestjs/testing": [
|
"@nestjs/testing": [
|
||||||
"./node_modules/@nestjs/testing"
|
"./node_modules/@nestjs/testing"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
'@': resolve(__dirname, '../../'),
|
'@': resolve(__dirname, '../../'),
|
||||||
'packages': resolve(__dirname, '../../packages'),
|
'packages': resolve(__dirname, '../../packages'),
|
||||||
'packages/*': resolve(__dirname, '../../packages/*'),
|
'core/*': resolve(__dirname, '../../core/*'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { ipcMain } from 'electron';
|
import { ipcMain } from 'electron';
|
||||||
import type { BrowserWindow, IpcMainInvokeEvent } from 'electron';
|
import type { BrowserWindow, IpcMainInvokeEvent } from 'electron';
|
||||||
import { DIContainer } from './di-container';
|
import { DIContainer } from './di-container';
|
||||||
import type { HostedSessionConfig } from 'packages/automation/domain/types/HostedSessionConfig';
|
import type { HostedSessionConfig } from 'core/automation/domain/types/HostedSessionConfig';
|
||||||
import { StepId } from 'packages/automation/domain/value-objects/StepId';
|
import { StepId } from 'core/automation/domain/value-objects/StepId';
|
||||||
import { AuthenticationState } from 'packages/automation/domain/value-objects/AuthenticationState';
|
import { AuthenticationState } from 'core/automation/domain/value-objects/AuthenticationState';
|
||||||
import { ElectronCheckoutConfirmationAdapter } from 'packages/automation/infrastructure/adapters/ipc/ElectronCheckoutConfirmationAdapter';
|
import { ElectronCheckoutConfirmationAdapter } from 'core/automation/infrastructure/adapters/ipc/ElectronCheckoutConfirmationAdapter';
|
||||||
import type { OverlayAction } from 'packages/automation/application/ports/OverlaySyncPort';
|
import type { OverlayAction } from 'core/automation/application/ports/OverlaySyncPort';
|
||||||
import type { IAutomationLifecycleEmitter } from 'packages/automation/infrastructure/adapters/IAutomationLifecycleEmitter';
|
import type { IAutomationLifecycleEmitter } from 'core/automation/infrastructure/adapters/IAutomationLifecycleEmitter';
|
||||||
|
|
||||||
let progressMonitorInterval: NodeJS.Timeout | null = null;
|
let progressMonitorInterval: NodeJS.Timeout | null = null;
|
||||||
let lifecycleSubscribed = false;
|
let lifecycleSubscribed = false;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { contextBridge, ipcRenderer } from 'electron';
|
import { contextBridge, ipcRenderer } from 'electron';
|
||||||
import type { HostedSessionConfig } from '../../../packages/automation/domain/types/HostedSessionConfig';
|
import type { HostedSessionConfig } from '../../../core/automation/domain/types/HostedSessionConfig';
|
||||||
import type { AuthenticationState } from '../../../packages/automation/domain/value-objects/AuthenticationState';
|
import type { AuthenticationState } from '../../../core/automation/domain/value-objects/AuthenticationState';
|
||||||
|
|
||||||
export interface AuthStatusEvent {
|
export interface AuthStatusEvent {
|
||||||
state: AuthenticationState;
|
state: AuthenticationState;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { LoginPrompt } from './components/LoginPrompt';
|
|||||||
import { BrowserModeToggle } from './components/BrowserModeToggle';
|
import { BrowserModeToggle } from './components/BrowserModeToggle';
|
||||||
import { CheckoutConfirmationDialog } from './components/CheckoutConfirmationDialog';
|
import { CheckoutConfirmationDialog } from './components/CheckoutConfirmationDialog';
|
||||||
import { RaceCreationSuccessScreen } from './components/RaceCreationSuccessScreen';
|
import { RaceCreationSuccessScreen } from './components/RaceCreationSuccessScreen';
|
||||||
import type { HostedSessionConfig } from '../../../packages/automation/domain/types/HostedSessionConfig';
|
import type { HostedSessionConfig } from '../../../core/automation/domain/types/HostedSessionConfig';
|
||||||
import type { AuthenticationState } from '../../../packages/automation/domain/value-objects/AuthenticationState';
|
import type { AuthenticationState } from '../../../core/automation/domain/value-objects/AuthenticationState';
|
||||||
import type { StartAutomationResponse } from '../main/preload';
|
import type { StartAutomationResponse } from '../main/preload';
|
||||||
|
|
||||||
interface SessionProgress {
|
interface SessionProgress {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
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 {
|
interface SessionCreationFormProps {
|
||||||
onSubmit: (config: HostedSessionConfig) => void;
|
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 and packages for development
|
||||||
COPY apps/website apps/website/
|
COPY apps/website apps/website/
|
||||||
COPY packages packages/
|
COPY packages core/
|
||||||
COPY apps/website/tsconfig.json apps/website/
|
COPY apps/website/tsconfig.json apps/website/
|
||||||
COPY scripts scripts/
|
COPY scripts scripts/
|
||||||
COPY tsconfig.base.json ./
|
COPY tsconfig.base.json ./
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ RUN npm ci
|
|||||||
|
|
||||||
# Copy apps/website, packages, and config for building
|
# Copy apps/website, packages, and config for building
|
||||||
COPY apps/website apps/website/
|
COPY apps/website apps/website/
|
||||||
COPY packages packages/
|
COPY packages core/
|
||||||
COPY apps/website/tsconfig.json apps/website/
|
COPY apps/website/tsconfig.json apps/website/
|
||||||
COPY scripts scripts/
|
COPY scripts scripts/
|
||||||
COPY tsconfig.base.json ./
|
COPY tsconfig.base.json ./
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@faker-js/faker": "^9.2.0",
|
"@faker-js/faker": "^9.2.0",
|
||||||
"@gridpilot/identity": "file:../../packages/identity",
|
"@gridpilot/identity": "file:../../core/identity",
|
||||||
"@gridpilot/notifications": "file:../../packages/notifications",
|
"@gridpilot/notifications": "file:../../core/notifications",
|
||||||
"@gridpilot/racing": "file:../../packages/racing",
|
"@gridpilot/racing": "file:../../core/racing",
|
||||||
"@gridpilot/social": "file:../../packages/social",
|
"@gridpilot/social": "file:../../core/social",
|
||||||
"@gridpilot/testing-support": "file:../../packages/testing-support",
|
"@gridpilot/testing-support": "file:../../core/testing-support",
|
||||||
"@vercel/kv": "^3.0.0",
|
"@vercel/kv": "^3.0.0",
|
||||||
"framer-motion": "^12.23.25",
|
"framer-motion": "^12.23.25",
|
||||||
"lucide-react": "^0.555.0",
|
"lucide-react": "^0.555.0",
|
||||||
|
|||||||
@@ -18,23 +18,23 @@
|
|||||||
"@/lib/*": ["./lib/*"],
|
"@/lib/*": ["./lib/*"],
|
||||||
"@/components/*": ["./components/*"],
|
"@/components/*": ["./components/*"],
|
||||||
"@/app/*": ["./app/*"],
|
"@/app/*": ["./app/*"],
|
||||||
"@gridpilot/identity": ["../../packages/identity/index.ts"],
|
"@gridpilot/identity": ["../../core/identity/index.ts"],
|
||||||
"@gridpilot/identity/*": ["../../packages/identity/*"],
|
"@gridpilot/identity/*": ["../../core/identity/*"],
|
||||||
"@gridpilot/racing": ["../../packages/racing/index.ts"],
|
"@gridpilot/racing": ["../../core/racing/index.ts"],
|
||||||
"@gridpilot/racing/*": ["../../packages/racing/*"],
|
"@gridpilot/racing/*": ["../../core/racing/*"],
|
||||||
"@gridpilot/social": ["../../packages/social/index.ts"],
|
"@gridpilot/social": ["../../core/social/index.ts"],
|
||||||
"@gridpilot/social/*": ["../../packages/social/*"],
|
"@gridpilot/social/*": ["../../core/social/*"],
|
||||||
"@gridpilot/testing-support": ["../../packages/testing-support/index.ts"],
|
"@gridpilot/testing-support": ["../../core/testing-support/index.ts"],
|
||||||
"@gridpilot/testing-support/*": ["../../packages/testing-support/*"],
|
"@gridpilot/testing-support/*": ["../../core/testing-support/*"],
|
||||||
"@gridpilot/media": ["../../packages/media/index.ts"],
|
"@gridpilot/media": ["../../core/media/index.ts"],
|
||||||
"@gridpilot/media/*": ["../../packages/media/*"],
|
"@gridpilot/media/*": ["../../core/media/*"],
|
||||||
"@gridpilot/shared": ["../../packages/shared/index.ts"],
|
"@gridpilot/shared": ["../../core/shared/index.ts"],
|
||||||
"@gridpilot/shared/application": ["../../packages/shared/application"],
|
"@gridpilot/shared/application": ["../../core/shared/application"],
|
||||||
"@gridpilot/shared/application/*": ["../../packages/shared/application/*"],
|
"@gridpilot/shared/application/*": ["../../core/shared/application/*"],
|
||||||
"@gridpilot/shared/presentation": ["../../packages/shared/presentation"],
|
"@gridpilot/shared/presentation": ["../../core/shared/presentation"],
|
||||||
"@gridpilot/shared/presentation/*": ["../../packages/shared/presentation/*"],
|
"@gridpilot/shared/presentation/*": ["../../core/shared/presentation/*"],
|
||||||
"@gridpilot/shared/domain": ["../../packages/shared/domain"],
|
"@gridpilot/shared/domain": ["../../core/shared/domain"],
|
||||||
"@gridpilot/shared/errors": ["../../packages/shared/errors"]
|
"@gridpilot/shared/errors": ["../../core/shared/errors"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"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