Skip to content

docs: CXSPA-11547 Installation and migration docs - #20918

Merged
pawelfras merged 2 commits into
epic/angular-20-upgradefrom
docs/CXSPA-11547-installation-and-migration-docs
Dec 2, 2025
Merged

pawelfras merged 2 commits into
epic/angular-20-upgradefrom
docs/CXSPA-11547-installation-and-migration-docs

Conversation

@pawelfras

@pawelfras pawelfras commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

This PR introduces installation and migration docs containing required manual steps necessary to perform in fresh and migrated apps, with and without SSR.

Ideally, we'd like to automate most of these steps in the future.

QA steps:

Prerequisites:

  • change version of all libs from 221121.4.0 to a bigger number (e.g 221121.5.0) and run npm run build:libs
    • we need to change version to higher than the one availoable on RBSC, for migration purposes
  • in the root folder, run npx ts-node ./tools/schematics/testing
  • in a wizard, select publish
    NOTE: terminal needs to be open until testing is finished
  • open Verdaccio and verify if all all packages are published and have expected version.
  1. Installation:
  • CSR:
  • SSR
    • open `docs/migration/221121_ng20/installation.md and follow all steps, including the 3rd
    • run npm run start to verify if app works in dev mode
    • run npm run build
    • run NODE_TLS_REJECT_UNAUTHORIZED=0 run serve:ssr:<your-app-name> to verify if prod build with SSR works
  1. Migration
  • CSR

    • create fresh Angular 19 app:
      npx @angular/cli@19 new my-app --standalone=false --ssr=false
    • in created location, create file .npmrc
      cd my app && touch .npmrc
      
    • paste the following snippet inside .npmrc to make installation from RBSC possible:
      always-auth=true
      @spartacus:registry=https://73554900100900004337.dev.npmsrv.base.repositories.cloud.sap/
      //73554900100900004337.dev.npmsrv.base.repositories.cloud.sap/:_auth=<YOUR_TOKEN>
      Pur your RBSC token instead of <YOUR_TOKEN>. For generating the token, see: https://wiki.one.int.sap/wiki/display/spar/How+to+Get+the+Access+Tokens+Required+to+Download+RBSC+Packages
    • install Spartacus in fresh app:
      npx ng add @spartacus/schematics --debug
    • open docs/migration/221121_ng20/migration.md and follow migration steps for CSR
      NOTE: remove local .npmrc file from the project so Spartacus for migration is taken from the Verdaccio (step required in prerequisites)
    • run npm run start to verify if app works in dev mode
    • run npm run build to verify the build
    • compare files to fresh Angular 20 with Spartacus
  • SSR

    • create fresh Angular 19 app:
       npx @angular/cli@19 new my-app --standalone=false --ssr=false
    • in created location, create file .npmrc
      cd my app && touch .npmrc
      
    • paste the following snippet inside .npmrc to make installation from RBSC possible:
      always-auth=true
      @spartacus:registry=https://73554900100900004337.dev.npmsrv.base.repositories.cloud.sap/
      //73554900100900004337.dev.npmsrv.base.repositories.cloud.sap/:_auth=<YOUR_TOKEN>
      Pur your RBSC token instead of <YOUR_TOKEN>. For generating the token, see: https://wiki.one.int.sap/wiki/display/spar/How+to+Get+the+Access+Tokens+Required+to+Download+RBSC+Packages
    • install Spartacus in fresh app:
      npx ng add @spartacus/schematics --ssr --debug
    • open docs/migration/221121_ng20/migration.md and follow migration steps for CSR+SSR
      NOTE: remove local .npmrc file from the project so Spartacus for migration is taken from the Verdaccio (step required in prerequisites)
    • run npm run start to verify if app works in dev mode
    • run npm run build
    • run NODE_TLS_REJECT_UNAUTHORIZED=0 run serve:ssr:<your-app-name> to verify if prod build with SSR works
    • compare files to fresh Angular 20 with Spartacus with SSR

@pawelfras
pawelfras merged commit dc5c85b into epic/angular-20-upgrade Dec 2, 2025
@pawelfras
pawelfras deleted the docs/CXSPA-11547-installation-and-migration-docs branch December 2, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants