Skip to content

Instantly share code, notes, and snippets.

@kekel87
Last active February 21, 2024 17:42
Show Gist options
  • Save kekel87/40521e547940e393a263b98e48ce2cc5 to your computer and use it in GitHub Desktop.
Save kekel87/40521e547940e393a263b98e48ce2cc5 to your computer and use it in GitHub Desktop.
Nx migration and comparison
npx nx migrate latest --interactive
npm i
npx nx migrate --run-migrations

# Upgrade angular (Take backup of migrations.json file between cmds)
npx nx migrate @angular/core@latest
npx nx migrate @angular/cli@latest
npx nx migrate @angular/material@latest

# Upgrade @angular-eslint
npx nx migrate @angular-eslint/schematics@latest

# Upgrade NGRX
npx nx migrate @ngrx/store@latest

npm i

# Merge all the migration backups in root migrations.json file
npx nx migrate --run-migrations

npm outdated
# Create empty new nx worksapce to make comparison
npx create-nx-workspace@latest \
  --name nx-diff \
  --appName angular \
  --preset angular-monorepo \
  --routing true \
  --skipGit \
  --style scss \
  --workspaceType integrated \
  --standaloneApi false \
  --nxCloud skip \
  --bundler esbuild \
  --ssr false \
  --e2eTestRunner playwright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment