This project has been successfully migrated to an Nx integrated workspace from a standalone Angular CLI project.
- Angular application moved from root to
apps/organizational-intelligence-system/ - Workspace now supports multiple applications and libraries
angular.jsonreplaced withnx.jsonandapps/organizational-intelligence-system/project.jsontsconfig.jsonreplaced withtsconfig.base.jsonfor workspace-wide settings
- Nx CLI: Use
nxcommands instead ofngfor better performance - Caching: Build and test results are cached automatically
- Task Orchestration: Run tasks across multiple projects efficiently
- Project Graph: Visualize dependencies with
nx graph - Affected Commands: Only build/test what changed
# Install dependencies (if needed)
npm install
# Start development server
npm start
# or
npx nx serve organizational-intelligence-system
# Build for production
npm run build
# or
npx nx build organizational-intelligence-system
# Run tests
npm test
# or
npx nx test organizational-intelligence-system# Show all projects in workspace
npx nx show projects
# List installed plugins
npx nx list
# View project graph
npx nx graph
# Run a target for all projects
npx nx run-many -t build
# Run a target only for affected projects
npx nx affected -t test
# Generate a new component
npx nx g @nx/angular:component my-component --project=organizational-intelligence-system
# Generate a new library
npx nx g @nx/angular:library my-lib- Workspace Config:
nx.json- Global Nx settings and caching configuration - Project Config:
apps/organizational-intelligence-system/project.json- Project-specific build, serve, and test targets - TypeScript:
tsconfig.base.json- Base TypeScript configuration with path mappings
- Faster Builds: Nx caches build outputs and only rebuilds what changed
- Monorepo Ready: Easy to add more applications and shared libraries
- Better DX: Enhanced CLI with better error messages and task visualization
- CI Optimization: Run only affected tests/builds in CI pipelines
- Code Generators: Scaffold new code with consistent patterns
This project was migrated using npx nx@latest init --integrated, which:
- Installed Nx packages (
nx,@nx/angular,@nx/workspace) - Created Nx configuration files
- Moved the Angular app to
apps/organizational-intelligence-system/ - Updated package.json scripts to use Nx
- Preserved all existing code and functionality