[MIGRATION] - Updating outdated packages

This commit is contained in:
VitoAlbano 2024-08-23 11:24:05 +01:00
parent 440dd6f087
commit fb82c4eeac
9 changed files with 1199 additions and 1274 deletions

View File

@ -2,4 +2,4 @@ export const parameters = {
docs: { inlineStories: true }, docs: { inlineStories: true },
controls: { expanded: true } controls: { expanded: true }
}; };
export const tags = ['autodocs']; export const tags = ['autodocs', 'autodocs', 'autodocs'];

View File

@ -1,5 +1,5 @@
export const parameters = { export const parameters = {
docs: { inlineStories: true }, docs: { inlineStories: true },
controls: { expanded: true } controls: { expanded: true }
}; };
export const tags = ["autodocs"]; export const tags = ['autodocs', 'autodocs'];

View File

@ -3,4 +3,4 @@ const rootPreview = require('../../../.storybook/preview');
export const parameters = { export const parameters = {
...rootPreview.preview ...rootPreview.preview
}; };
export const tags = ['autodocs']; export const tags = ['autodocs', 'autodocs'];

View File

@ -1,5 +1,5 @@
export const parameters = { export const parameters = {
docs: { inlineStories: true }, docs: { inlineStories: true },
controls: { expanded: true } controls: { expanded: true }
}; };
export const tags = ['autodocs']; export const tags = ['autodocs', 'autodocs'];

View File

@ -2,4 +2,4 @@ export const parameters = {
docs: { inlineStories: true }, docs: { inlineStories: true },
controls: { expanded: true } controls: { expanded: true }
}; };
export const tags = ["autodocs"]; export const tags = ['autodocs', 'autodocs'];

View File

@ -1,312 +0,0 @@
{
"migrations": [
{
"cli": "nx",
"version": "16.0.0-beta.0",
"description": "Remove @nrwl/cli.",
"implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli",
"package": "nx",
"name": "16.0.0-remove-nrwl-cli"
},
{
"cli": "nx",
"version": "16.0.0-beta.9",
"description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
"implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens",
"package": "nx",
"name": "16.0.0-tokens-for-depends-on"
},
{
"cli": "nx",
"version": "16.0.0-beta.0",
"description": "Replace @nrwl/nx-cloud with nx-cloud",
"implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner",
"package": "nx",
"name": "16.0.0-update-nx-cloud-runner"
},
{
"cli": "nx",
"version": "16.2.0-beta.0",
"description": "Remove outputPath from run commands",
"implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path",
"package": "nx",
"name": "16.2.0-remove-output-path-from-run-commands"
},
{
"cli": "nx",
"version": "16.6.0-beta.6",
"description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
"implementation": "./src/migrations/update-15-0-0/prefix-outputs",
"package": "nx",
"name": "16.6.0-prefix-outputs"
},
{
"cli": "nx",
"version": "16.8.0-beta.3",
"description": "Escape $ in env variables",
"implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
"package": "nx",
"name": "16.8.0-escape-dollar-sign-env"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/workspace with @nx/workspace",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/workspace",
"name": "update-16-0-0-add-nx-packages"
},
{
"version": "16.0.0-beta.4",
"description": "Generates a plugin called 'workspace-plugin' containing your workspace generators.",
"cli": "nx",
"implementation": "./src/migrations/update-16-0-0/move-workspace-generators-to-local-plugin",
"package": "@nx/workspace",
"name": "16-0-0-move-workspace-generators-into-local-plugin"
},
{
"version": "16.0.0-beta.9",
"description": "Fix .babelrc presets if it contains an invalid entry for @nx/web/babel.",
"cli": "nx",
"implementation": "./src/migrations/update-16-0-0/fix-invalid-babelrc",
"package": "@nx/workspace",
"name": "16-0-0-fix-invalid-babelrc"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/js with @nx/js",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/js",
"name": "update-16-0-0-add-nx-packages"
},
{
"cli": "nx",
"version": "16.6.0-beta.0",
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
"package": "@nx/js",
"name": "explicitly-set-projects-to-update-buildable-deps"
},
{
"cli": "nx",
"version": "16.8.2-beta.0",
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
"factory": "./src/migrations/update-16-8-2/update-swcrc",
"package": "@nx/js",
"name": "16-8-2-update-swcrc"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/storybook with @nx/storybook",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/storybook",
"name": "update-16-0-0-add-nx-packages"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Update workspace to use Storybook v7",
"implementation": "./src/migrations/update-16-0-0/update-sb-7",
"package": "@nx/storybook",
"name": "update-16-0-0-migrate-7"
},
{
"cli": "nx",
"version": "16.1.0-beta.0",
"description": "Ignore @nx/react/plugins/storybook in Storybook eslint rules.",
"factory": "./src/migrations/update-16-1-0/eslint-ignore-react-plugin",
"package": "@nx/storybook",
"name": "update-16-1-0"
},
{
"cli": "nx",
"version": "16.5.0-beta.0",
"description": "Move .storybook/tsconfig.json to tsconfig.storybook.json for non-Angular projects.",
"factory": "./src/migrations/update-16-5-0/move-storybook-tsconfig",
"package": "@nx/storybook",
"name": "update-16-5-0"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/eslint-plugin with @nx/eslint-plugin",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/eslint-plugin",
"name": "update-16-0-0-add-nx-packages"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/node with @nx/node",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/node",
"name": "update-16-0-0-add-nx-packages"
},
{
"cli": "nx",
"version": "16.0.0-beta.5",
"description": "Replace @nx/node:webpack with @nx/node:webpack",
"implementation": "./src/migrations/update-16-0-0/update-webpack-executor",
"package": "@nx/node",
"name": "update-16-0-0-update-executor"
},
{
"cli": "nx",
"version": "16.3.1-beta.0",
"description": "Replace @nx/node:webpack and @nx/node:webpack with @nx/webpack:webpack for all project targets",
"implementation": "./src/migrations/update-16-3-1/update-webpack-executor",
"package": "@nx/node",
"name": "update-16-3-1-update-executor"
},
{
"cli": "nx",
"version": "16.4.0-beta.8",
"description": "Replace @nx/node:node with @nx/js:node for all project targets",
"implementation": "./src/migrations/update-16-4-0/replace-node-executor",
"package": "@nx/node",
"name": "update-16-4-0-replace-node-executor"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace the deprecated library generator 'simpleModuleName' option from generator defaults with 'simpleName'",
"factory": "./src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option",
"package": "@nx/angular",
"name": "remove-library-generator-simple-module-name-option"
},
{
"cli": "nx",
"version": "16.0.0-beta.1",
"description": "Replace @nx/angular with @nx/angular",
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages",
"package": "@nx/angular",
"name": "update-16-0-0-add-nx-packages"
},
{
"cli": "nx",
"version": "16.0.0-beta.6",
"description": "Remove protractor as default e2eTestRunner from nxJson and project configurations",
"implementation": "./src/migrations/update-16-0-0/remove-protractor-defaults",
"package": "@nx/angular",
"name": "remove-protractor-defaults-from-generators"
},
{
"cli": "nx",
"version": "16.0.0-beta.6",
"description": "Remove karma as default unitTestRunner from nxJson and project configurations",
"implementation": "./src/migrations/update-16-0-0/remove-karma-defaults",
"package": "@nx/angular",
"name": "remove-karma-defaults-from-generators"
},
{
"cli": "nx",
"version": "16.1.0-beta.1",
"requires": { "@angular/core": ">=15.0.0" },
"description": "Remove exported `@angular/platform-server` `renderModule` method. The `renderModule` method is now exported by the Angular CLI.",
"factory": "./src/migrations/update-16-1-0/remove-render-module-platform-server-exports",
"package": "@nx/angular",
"name": "remove-render-module-platform-server-exports"
},
{
"cli": "nx",
"version": "16.1.0-beta.1",
"requires": { "@angular/core": ">=16.0.0-rc.4" },
"description": "Remove 'ngcc' invocation if exists from the 'postinstall' script in package.json.",
"factory": "./src/migrations/update-16-1-0/remove-ngcc-invocation",
"package": "@nx/angular",
"name": "remove-ngcc-invocation"
},
{
"cli": "nx",
"version": "16.1.0-beta.1",
"requires": { "@angular/core": ">=16.0.0-rc.4" },
"description": "Extract the app config for standalone apps",
"factory": "./src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap",
"package": "@nx/angular",
"name": "extract-app-config-for-standalone"
},
{
"cli": "nx",
"version": "16.1.0-beta.1",
"requires": { "@angular/core": ">=16.0.0-rc.4" },
"description": "Update server executors' configuration to disable 'buildOptimizer' for non optimized builds.",
"factory": "./src/migrations/update-16-1-0/update-server-executor-config",
"package": "@nx/angular",
"name": "update-server-executor-config"
},
{
"cli": "nx",
"version": "16.1.0-beta.1",
"requires": { "@angular/core": ">=16.0.0" },
"description": "Update the @angular/cli package version to ~16.0.0.",
"factory": "./src/migrations/update-16-1-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-16-0-0"
},
{
"cli": "nx",
"version": "16.4.0-beta.6",
"requires": { "@angular-eslint/eslint-plugin-template": ">=16.0.0" },
"description": "Remove the 'accessibility-' prefix from '@angular-eslint/eslint-plugin-template' rules.",
"factory": "./src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules",
"package": "@nx/angular",
"name": "rename-angular-eslint-accesibility-rules"
},
{
"cli": "nx",
"version": "16.4.0-beta.11",
"requires": { "@angular/core": ">=16.1.0" },
"description": "Update the @angular/cli package version to ~16.1.0.",
"factory": "./src/migrations/update-16-4-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-16-1-0"
},
{
"cli": "nx",
"version": "16.6.0-beta.0",
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps",
"package": "@nx/angular",
"name": "explicitly-set-projects-to-update-buildable-deps"
},
{
"cli": "nx",
"version": "16.7.0-beta.6",
"requires": { "@angular/core": ">=16.2.0" },
"description": "Update the @angular/cli package version to ~16.2.0.",
"factory": "./src/migrations/update-16-7-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-16-2-0"
},
{
"version": "16.0.0",
"description": "As of Angular v16, the `moduleId` property of `@Component` is deprecated as it no longer has any effect.",
"factory": "./migrations/remove-module-id/bundle",
"package": "@angular/core",
"name": "migration-v16-remove-module-id"
},
{
"version": "16.0.0",
"description": "In Angular version 15.2, the guard and resolver interfaces (CanActivate, Resolve, etc) were deprecated. This migration removes imports and 'implements' clauses that contain them.",
"factory": "./migrations/guard-and-resolve-interfaces/bundle",
"package": "@angular/core",
"name": "migration-v16-guard-and-resolve-interfaces"
},
{
"version": "16.0.0-0",
"description": "Updates the Angular Material to v16",
"factory": "./ng-update/index_bundled#updateToV16",
"package": "@angular/material",
"name": "migration-v16"
},
{
"version": "16.0.0-0",
"description": "Updates the Angular CDK to v16",
"factory": "./ng-update/index#updateToV16",
"package": "@angular/cdk",
"name": "migration-v16"
}
]
}

1947
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,37 @@
{ {
"name": "alfresco-ng2-components", "name": "alfresco-ng2-components",
"commit": "b644b39d17396330d2a67509f58c5b9e890b9b13",
"description": "Alfresco Angular components", "description": "Alfresco Angular components",
"version": "6.9.0", "version": "6.9.0",
"author": "Hyland Software, Inc. and its affiliates", "author": "Hyland Software, Inc. and its affiliates",
"scripts": { "scripts": {
"prepare": "husky install", "prepare": "husky install",
"ng": "nx",
"00": "echo -------------------------------------------- DOC -----------------------------------------------",
"build-doc-tools": "tsc -p ./tools/doc/tsconfig.json", "build-doc-tools": "tsc -p ./tools/doc/tsconfig.json",
"docbuild": "(cd ./tools/doc; npm i) && node tools/doc/node_modules/typedoc/bin/typedoc --tsconfig lib/tsconfig.doc.json && node tools/doc/buildYamlSourceInfo.js docs/docs.json && node ./tools/doc/docProcessor.js", "docbuild": "(cd ./tools/doc; npm i) && node tools/doc/node_modules/typedoc/bin/typedoc --tsconfig lib/tsconfig.doc.json && node tools/doc/buildYamlSourceInfo.js docs/docs.json && node ./tools/doc/docProcessor.js",
"01": "echo -------------------------------------------- Build Lib -----------------------------------------------",
"affected:libs": "nx affected:libs", "affected:libs": "nx affected:libs",
"coverage": "./lib/config/create-coverage-index.sh && lite-server -c ./lib/config/proxy-coverage.json",
"03": "echo -------------------------------------------- Lint -----------------------------------------------",
"affected:lint": "nx affected:lint", "affected:lint": "nx affected:lint",
"clean": "rimraf dist node_modules dist/libs" "04": "echo -------------------------------------------- Demo Shell -----------------------------------------------",
"start": "nx serve demoshell --open",
"start:prod": "nx serve demoshell --configuration production --open",
"build": "nx build demoshell",
"build:prod": "node --max-old-space-size=12000 node_modules/@angular/cli/bin/nx build demoshell --configuration production",
"test": "nx test demoshell --watch=false",
"05": "echo -------------------------------------------- E2e -----------------------------------------------",
"e2e": "./scripts/test-e2e-lib.sh -host 'localhost:4200' -dev --folder demo-shell",
"e2e-lib": "nx e2e lib-e2e-test --port=4200",
"lite-server-e2e": "lite-server --baseDir='dist/demo-shell/' -c ./e2e/lite-server-proxy.js",
"postbuild:ci": "node ./scripts/app-config-replace.js",
"06": "echo -------------------------------------------- Clean ----------------------------------------------",
"clean": "rimraf dist node_modules dist/libs",
"playwright": "npx playwright test --config='e2e-playwright/playwright.config.ts'",
"postinstall": "npm run update-webdriver",
"update-webdriver": "./scripts/webdriver-update-newest/update-to-newest-webdriver.sh",
"update-webdriver:windows": "powershell -executionPolicy bypass ./scripts/update-webdriver.ps1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -40,30 +62,25 @@
"@angular/platform-browser": "16.2.9", "@angular/platform-browser": "16.2.9",
"@angular/platform-browser-dynamic": "16.2.9", "@angular/platform-browser-dynamic": "16.2.9",
"@angular/router": "16.2.9", "@angular/router": "16.2.9",
"@apollo/client": "^3.10.2", "@apollo/client": "3.11.4",
"@cspell/eslint-plugin": "^7.3.6", "@cspell/eslint-plugin": "^7.3.6",
"@mat-datetimepicker/core": "12.0.1", "@mat-datetimepicker/core": "12.0.1",
"@ngx-translate/core": "^14.0.0", "@ngx-translate/core": "^14.0.0",
"@storybook/core-server": "^8.2.7", "@storybook/core-server": "^8.2.9",
"@storybook/theming": "^8.2.7", "@storybook/theming": "^8.2.9",
"angular-oauth2-oidc": "^13.0.1", "angular-oauth2-oidc": "^13.0.1",
"angular-oauth2-oidc-jwks": "^17.0.2", "angular-oauth2-oidc-jwks": "^17.0.2",
"apollo-angular": "^5.0.2", "apollo-angular": "^5.0.2",
"axios": "^1.7.4", "chart.js": "4.4.4",
"chart.js": "^4.3.0",
"cropperjs": "1.6.2", "cropperjs": "1.6.2",
"date-fns": "^2.30.0", "date-fns": "^2.30.0",
"dotenv-expand": "^5.1.0", "dotenv-expand": "^5.1.0",
"event-emitter": "^0.3.5", "event-emitter": "^0.3.5",
"material-icons": "^1.13.12", "material-icons": "^1.13.12",
"minimatch-browser": "1.0.0", "minimatch-browser": "1.0.0",
<<<<<<< HEAD
"ng2-charts": "^4.1.1",
=======
"monaco-editor": "0.41.0", "monaco-editor": "0.41.0",
"ng2-charts": "^4.1.1", "ng2-charts": "^4.1.1",
"ngx-monaco-editor-v2": "16.0.1", "ngx-monaco-editor-v2": "16.0.1",
>>>>>>> 937f0e746b (NG-16 - migration step 1)
"pdfjs-dist": "3.3.122", "pdfjs-dist": "3.3.122",
"raphael": "2.3.0", "raphael": "2.3.0",
"rxjs": "7.8.1", "rxjs": "7.8.1",
@ -71,7 +88,8 @@
"superagent": "^9.0.1", "superagent": "^9.0.1",
"ts-morph": "^20.0.0", "ts-morph": "^20.0.0",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"zone.js": "0.13.3" "zone.js": "0.13.3",
"@storybook/addon-interactions": "^8.2.9"
}, },
"devDependencies": { "devDependencies": {
"@alfresco/eslint-plugin-eslint-angular": "file:lib/eslint-angular", "@alfresco/eslint-plugin-eslint-angular": "file:lib/eslint-angular",
@ -84,24 +102,25 @@
"@angular-eslint/template-parser": "16.0.3", "@angular-eslint/template-parser": "16.0.3",
"@angular/cli": "~16.2.0", "@angular/cli": "~16.2.0",
"@angular/compiler-cli": "16.2.9", "@angular/compiler-cli": "16.2.9",
"@chromatic-com/storybook": "^1.6.1", "@chromatic-com/storybook": "1.7.0",
"@editorjs/code": "2.9.0", "@editorjs/code": "2.9.0",
"@editorjs/editorjs": "^2.29.0", "@editorjs/editorjs": "2.30.5",
"@editorjs/header": "2.8.1", "@editorjs/header": "2.8.1",
"@editorjs/inline-code": "1.5.0", "@editorjs/inline-code": "1.5.0",
"@editorjs/list": "1.10.0", "@editorjs/list": "1.10.0",
"@editorjs/marker": "1.4.0", "@editorjs/marker": "1.4.0",
"@editorjs/underline": "1.1.0", "@editorjs/underline": "1.1.0",
"@nx/js": "16.10.0", "@nx/js": "16.10.0",
"@nx/storybook": "^19.5.6", "@nx/storybook": "19.6.2",
"@nx/workspace": "16.10.0", "@nx/workspace": "16.10.0",
"@paperist/types-remark": "0.1.3", "@paperist/types-remark": "0.1.3",
"@playwright/test": "1.46.1",
"@quanzo/change-font-size": "1.0.0", "@quanzo/change-font-size": "1.0.0",
"@schematics/angular": "16.2.9", "@schematics/angular": "16.2.9",
"@storybook/addon-essentials": "^8.2.7", "@storybook/addon-essentials": "^8.2.9",
"@storybook/angular": "^8.2.7", "@storybook/angular": "^8.2.9",
"@storybook/core-server": "^8.2.7", "@storybook/core-server": "^8.2.9",
"@storybook/manager-api": "^8.2.7", "@storybook/manager-api": "^8.2.9",
"@types/ejs": "^3.1.5", "@types/ejs": "^3.1.5",
"@types/event-emitter": "^0.3.3", "@types/event-emitter": "^0.3.3",
"@types/jasmine": "4.0.3", "@types/jasmine": "4.0.3",
@ -109,8 +128,9 @@
"@types/jsdom": "^21.1.5", "@types/jsdom": "^21.1.5",
"@types/minimatch": "^3.0.3", "@types/minimatch": "^3.0.3",
"@types/mocha": "^10.0.6", "@types/mocha": "^10.0.6",
"@types/node": "^20.10.0", "@types/node": "20.16.1",
"@types/pdfjs-dist": "^2.10.378", "@types/pdfjs-dist": "^2.10.378",
"@types/selenium-webdriver": "4.1.25",
"@types/shelljs": "^0.8.15", "@types/shelljs": "^0.8.15",
"@types/superagent": "^4.1.22", "@types/superagent": "^4.1.22",
"@typescript-eslint/eslint-plugin": "5.59.8", "@typescript-eslint/eslint-plugin": "5.59.8",
@ -118,7 +138,7 @@
"@typescript-eslint/typescript-estree": "7.1.1", "@typescript-eslint/typescript-estree": "7.1.1",
"ajv": "^8.12.0", "ajv": "^8.12.0",
"commander": "12.0.0", "commander": "12.0.0",
"css-loader": "^7.1.2", "css-loader": "^6.10.0",
"dotenv": "16.4.5", "dotenv": "16.4.5",
"editorjs-html": "3.4.3", "editorjs-html": "3.4.3",
"editorjs-paragraph-with-alignment": "3.0.0", "editorjs-paragraph-with-alignment": "3.0.0",
@ -141,9 +161,10 @@
"jasmine-core": "4.6.0", "jasmine-core": "4.6.0",
"jasmine-marbles": "^0.9.2", "jasmine-marbles": "^0.9.2",
"jasmine-reporters": "^2.5.2", "jasmine-reporters": "^2.5.2",
"jasmine-spec-reporter": "7.0.0",
"js-yaml": "^4.0.0", "js-yaml": "^4.0.0",
"jsdom": "^24.0.0", "jsdom": "^24.0.0",
"karma": "^6.4.1", "karma": "6.4.4",
"karma-chrome-launcher": "~3.2.0", "karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0", "karma-coverage": "~2.2.0",
"karma-jasmine": "5.0.1", "karma-jasmine": "5.0.1",
@ -151,48 +172,73 @@
"karma-jasmine-html-reporter": "^2.1.0", "karma-jasmine-html-reporter": "^2.1.0",
"karma-mocha-reporter": "2.2.5", "karma-mocha-reporter": "2.2.5",
"license-checker": "^25.0.1", "license-checker": "^25.0.1",
"lint-staged": "^15.2.2", "lint-staged": "15.2.9",
"mini-css-extract-plugin": "^2.7.6", "lite-server": "^2.6.1",
"mocha": "^10.2.0", "mini-css-extract-plugin": "2.9.1",
"mocha": "10.7.3",
"moment": "^2.29.4", "moment": "^2.29.4",
"ng-packagr": "16.2.3", "ng-packagr": "16.2.3",
"nock": "^13.3.8", "nock": "13.5.5",
<<<<<<< HEAD
"nx": "15.9.7",
=======
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"nx": "16.10.0", "nx": "16.10.0",
>>>>>>> 937f0e746b (NG-16 - migration step 1) "postcss": "8.4.41",
"postcss": "^8.4.31",
"postcss-sass": "^0.5.0", "postcss-sass": "^0.5.0",
"prettier": "2.8.8", "prettier": "2.8.8",
"protractor": "^7.0.0", "protractor": "^7.0.0",
"rimraf": "^5.0.5", "protractor-retry-angular-cli": "^2.0.3",
"protractor-screenshoter-plugin": "0.10.3",
"protractor-smartrunner": "^2.0.0-beta6",
"rimraf": "5.0.10",
"sass-loader": "13.3.2", "sass-loader": "13.3.2",
"selenium-webdriver": "^4.14.0",
"shelljs": "^0.8.5", "shelljs": "^0.8.5",
"spdx-license-list": "^6.9.0", "spdx-license-list": "^6.9.0",
"storybook": "^8.2.7", "storybook": "^8.2.9",
"stylelint": "^16.3.1", "stylelint": "16.8.2",
"stylelint-config-standard-scss": "^13.1.0", "stylelint-config-standard-scss": "^13.1.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
<<<<<<< HEAD
"typescript": "4.9.5",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
=======
"tsconfig-paths": "^4.1.1", "tsconfig-paths": "^4.1.1",
"typescript": "5.1.6", "typescript": "5.1.6",
"webdriver-manager": "12.1.9", "webdriver-manager": "12.1.9",
"webpack": "^5.90.3", "webpack": "5.94.0",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"@nx/eslint-plugin": "16.10.0", "@nx/eslint-plugin": "16.10.0",
"@nx/node": "16.10.0", "@nx/node": "16.10.0",
"@nx/angular": "16.10.0" "@nx/angular": "16.10.0"
>>>>>>> 937f0e746b (NG-16 - migration step 1)
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"bundlesize": [
{
"path": "./dist/libs/content-services/bundles/adf-content-services.umd.min.js",
"maxSize": "85 kb"
},
{
"path": "./dist/libs/process-services/bundles/adf-process-services.umd.min.js",
"maxSize": "62 kb"
},
{
"path": "./dist/libs/insights/bundles/adf-insights.umd.min.js",
"maxSize": "50 kb"
},
{
"path": "./dist/libs/core/bundles/adf-core.umd.min.js",
"maxSize": "165 kb"
},
{
"path": "./dist/libs/process-services-cloud/bundles/adf-process-services-cloud.umd.min.js",
"maxSize": "60 kb"
},
{
"path": "./dist/libs/extensions/bundles/adf-extensions.umd.min.js",
"maxSize": "10 kb"
},
{
"path": "./dist/libs/testing/bundles/adf-testing.umd.min.js",
"maxSize": "50 kb"
}
],
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=6.0.0"
}, },
"module": "./index.js", "module": "./index.js",
"typings": "./index.d.ts" "typings": "./index.d.ts"

View File

@ -1,68 +0,0 @@
# Storybook 7 Migration Summary
## Upgrade Storybook packages
The following command was ran to upgrade the Storybook packages:
```bash
npx storybook@latest upgrade
```
## Your `.storybook/main.js|ts` files were prepared for Storybook's automigration scripts
Some adjustments were made to your `.storybook/main.js|ts` files so that
the Storybook automigration scripts could run successfully. The changes that were made are as follows:
- Remove the `as StorybookConfig` typecast from the main.ts files, if any,
since it is not needed any more.
- Remove the `path.resolve` calls from the Next.js Storybook configuration, if any, since it breaks the Storybook automigration scripts.
## The Storybook automigration scripts were ran
The following commands ran successfully and your Storybook configuration was successfully migrated to the latest version 7:
- `npx storybook@latest automigrate --config-dir lib/content-services/.storybook --renderer @storybook/angular`
- `npx storybook@latest automigrate --config-dir lib/core/.storybook --renderer @storybook/angular`
- `npx storybook@latest automigrate --config-dir lib/process-services-cloud/.storybook --renderer @storybook/angular`
- `npx storybook@latest automigrate --config-dir lib/stories/.storybook --renderer @storybook/angular`
Please make sure to check the results yourself and make sure that everything is working as expected.
Also, we may have missed something. Please make sure to check the logs of the Storybook CLI commands that were run, and look for
the `❌ Failed trying to evaluate` message or `❌ The migration failed to update` message. This will indicate if a command was
unsuccessful, and will help you run the migration again, manually.
## Final adjustments
After the Storybook automigration scripts have run, some additional adjustments were made to your
workspace, to make sure that everything is working as expected. These adjustments are as follows:
- The `vite-tsconfig-paths` plugin was removed from the Storybook configuration files since it's no longer needed.
- The `viteConfigPath` option was added to the Storybook builder, where needed.
- The import package for the `StorybookConfig` type was changed to be framework specific.
- The `uiFramework` option was removed from your project's Storybook targets.
- The `lit` package was added to your workspace, if you are using the
Web Components `@storybook/web-components` package. Please note that the `lit-html` package is
no longer needed by Storybook v7. So, if you are not using it anywhere else, you can safely remove it.
## Next steps
You can make sure everything is working as expected by trying
to build or serve your Storybook as you normally would.
```bash
npx nx build-storybook project-name
```
```bash
npx nx storybook project-name
```
Please read the [Storybook 7.0.0 release article](https://storybook.js.org/blog/storybook-7-0/) and the
official [Storybook 7.0.0 migration guide](https://storybook.js.org/docs/react/migration-guide)
for more information.
You can also read the docs for the [@nx/storybook:migrate-7 generator](https://nx.dev/nx-api/storybook/generators/migrate-7) and our [Storybook 7 setup guide](https://nx.dev/nx-api/storybook/documents/storybook-7-setup).