Historical task source. The Eve task board holds current task state.
Phase 2: Nx Workspace Initialization ✅#
2.1 Nx Setup#
- 2.1.1 Install nx, @nx/js, @nx/node, @nx/react, @nx/vite as devDependencies
- 2.1.2 Create nx.json configuration at oshun root
- 2.1.3 Configure Nx Cloud (optional but recommended for caching)
- 2.1.4 Set up nx.json with default task runner options
- 2.1.5 Configure parallel execution limits based on CI runners
- 2.1.6 Set up affected commands configuration
2.2 Directory Structure#
- 2.2.1 Create apps/ directory at oshun root
- 2.2.2 Create libs/ directory at oshun root
- 2.2.3 Create tools/ directory at oshun root
- 2.2.4 Create apps/lilith/ subdirectory for lilith apps
- 2.2.5 Create apps/yemaya/ subdirectory for yemaya apps
- 2.2.6 Create apps/isis/ subdirectory for isis apps
- 2.2.7 Create apps/sophia/ subdirectory for sophia apps
- 2.2.8 Create apps/hathor/ subdirectory for hathor apps
- 2.2.9 Create apps/bellona/ subdirectory for bellona apps
- 2.2.10 Create libs/shared/ subdirectory for shared foundation
- 2.2.11 Create libs/contracts/ subdirectory for cross-domain contracts
- 2.2.12 Create libs/isis/ subdirectory for isis libraries
- 2.2.13 Create libs/sophia/ subdirectory for sophia libraries
- 2.2.14 Create libs/hathor/ subdirectory for hathor libraries
- 2.2.15 Create libs/bellona/ subdirectory for bellona libraries
- 2.2.16 Create libs/lilith/ subdirectory for lilith-specific libraries
- 2.2.17 Create libs/yemaya/ subdirectory for yemaya-specific libraries
2.3 Nx Tags Configuration#
- 2.3.1 Define scope tags in nx.json: scope:lilith, scope:yemaya, scope:isis, scope:sophia, scope:hathor, scope:bellona, scope:shared
- 2.3.2 Define type tags: type:app, type:lib, type:e2e
- 2.3.3 Define layer tags: layer:ui, layer:domain, layer:data, layer:infra, layer:contracts
- 2.3.4 Create .eslintrc.json at root with @nx/enforce-module-boundaries rule
- 2.3.5 Configure depConstraints for scope boundaries:
- scope:lilith cannot depend on scope:yemaya (and vice versa)
- scope:isis cannot depend on scope:lilith or scope:yemaya
- scope:sophia cannot depend on scope:lilith or scope:yemaya
- scope:hathor can depend on scope:sophia
- layer:ui can depend on layer:domain, layer:contracts, layer:infra
- layer:domain cannot depend on layer:ui
2.4 Shared TypeScript Configuration#
- 2.4.1 Create tsconfig.base.json at oshun root
- 2.4.2 Configure path aliases for all scopes (@oshun/, @lilith/, @yemaya/*, etc.)
- 2.4.3 Set strict mode, ES2022 target, NodeNext module resolution
- 2.4.4 Create tsconfig.lib.json for library projects
- 2.4.5 Create tsconfig.app.json for application projects
- 2.4.6 Create tsconfig.spec.json for test configurations
- 2.4.7 Migrate lilith/tsconfig.json settings to base config
- 2.4.8 Migrate yemaya configs/typescript/* settings to base config
- 2.4.9 Remove redundant tsconfig files from yemaya/configs/
2.5 Shared Linting Configuration#
- 2.5.1 Create root .eslintrc.json with base rules
- 2.5.2 Migrate lilith/.eslintrc.json rules
- 2.5.3 Migrate yemaya/configs/eslint rules
- 2.5.4 Create .prettierrc at root
- 2.5.5 Migrate prettier configs from both projects
- 2.5.6 Remove lilith/packages/eslint-config
- 2.5.7 Remove lilith/packages/prettier-config
- 2.5.8 Remove yemaya/configs/eslint
- 2.5.9 Remove yemaya/configs/prettier
- 2.5.10 Create lint-staged configuration at root