mirror of https://github.com/abpframework/abp.git
committed by
GitHub
40 changed files with 287 additions and 217 deletions
@ -1,7 +1,7 @@ |
|||||
import { bootstrapApplication } from '@angular/platform-browser'; |
import { bootstrapApplication, BootstrapContext } from '@angular/platform-browser'; |
||||
import { AppComponent } from './app/app.component'; |
import { AppComponent } from './app/app.component'; |
||||
import { config } from './app/app.config.server'; |
import { config } from './app/app.config.server'; |
||||
|
|
||||
const bootstrap = () => bootstrapApplication(AppComponent, config); |
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, config, context); |
||||
|
|
||||
export default bootstrap; |
export default bootstrap; |
||||
|
|||||
@ -1,45 +1,118 @@ |
|||||
{ |
{ |
||||
"migrations": [ |
"migrations": [ |
||||
|
{ |
||||
|
"version": "22.0.0-beta.1", |
||||
|
"description": "Updates release version config based on the breaking changes in Nx v22", |
||||
|
"implementation": "./src/migrations/update-22-0-0/release-version-config-changes", |
||||
|
"package": "nx", |
||||
|
"name": "22-0-0-release-version-config-changes" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "22.0.0-beta.2", |
||||
|
"description": "Consolidates releaseTag* options into nested releaseTag object structure", |
||||
|
"implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config", |
||||
|
"package": "nx", |
||||
|
"name": "22-0-0-consolidate-release-tag-config" |
||||
|
}, |
||||
{ |
{ |
||||
"cli": "nx", |
"cli": "nx", |
||||
"version": "21.2.0-beta.3", |
"version": "22.1.0-beta.5", |
||||
"requires": { "@angular/core": ">=20.0.0" }, |
"description": "Updates the nx wrapper.", |
||||
"description": "Update the @angular/cli package version to ~20.0.0.", |
"implementation": "./src/migrations/update-22-1-0/update-nx-wrapper", |
||||
"factory": "./src/migrations/update-21-2-0/update-angular-cli", |
"package": "nx", |
||||
|
"name": "22-1-0-update-nx-wrapper" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "21.5.0-beta.2", |
||||
|
"description": "Migrate the legacy 'development' custom condition to a workspace-unique custom condition name.", |
||||
|
"factory": "./src/migrations/update-21-5-0/migrate-development-custom-condition", |
||||
|
"package": "@nx/js", |
||||
|
"name": "migrate-development-custom-condition" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "22.0.0-beta.0", |
||||
|
"description": "Remove the deprecated `external` and `externalBuildTargets` options from the `@nx/js:swc` and `@nx/js:tsc` executors.", |
||||
|
"factory": "./src/migrations/update-22-0-0/remove-external-options-from-js-executors", |
||||
|
"package": "@nx/js", |
||||
|
"name": "remove-external-options-from-js-executors" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "22.1.0-rc.1", |
||||
|
"description": "Removes redundant TypeScript project references from project's tsconfig.json files when runtime tsconfig files (e.g., tsconfig.lib.json, tsconfig.app.json) exist.", |
||||
|
"factory": "./src/migrations/update-22-1-0/remove-redundant-ts-project-references", |
||||
|
"package": "@nx/js", |
||||
|
"name": "remove-redundant-ts-project-references" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "21.3.0-beta.3", |
||||
|
"description": "Rename the CLI option `testPathPattern` to `testPathPatterns`.", |
||||
|
"implementation": "./src/migrations/update-21-3-0/rename-test-path-pattern", |
||||
|
"package": "@nx/jest", |
||||
|
"name": "rename-test-path-pattern" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "22.2.0-beta.2", |
||||
|
"description": "Convert jest.config.ts files from ESM to CJS syntax (export default -> module.exports, import -> require) for projects using CommonJS resolution to ensure correct loading under Node.js type-stripping.", |
||||
|
"implementation": "./src/migrations/update-22-2-0/convert-jest-config-to-cjs", |
||||
|
"package": "@nx/jest", |
||||
|
"name": "convert-jest-config-to-cjs" |
||||
|
}, |
||||
|
{ |
||||
|
"cli": "nx", |
||||
|
"version": "21.3.0-beta.4", |
||||
|
"requires": { "@angular/core": ">=20.1.0" }, |
||||
|
"description": "Update the @angular/cli package version to ~20.1.0.", |
||||
|
"factory": "./src/migrations/update-21-3-0/update-angular-cli", |
||||
"package": "@nx/angular", |
"package": "@nx/angular", |
||||
"name": "update-angular-cli-version-20-0-0" |
"name": "update-angular-cli-version-20-1-0" |
||||
}, |
}, |
||||
{ |
{ |
||||
"version": "21.2.0-beta.3", |
"version": "21.5.0-beta.0", |
||||
"requires": { "@angular/core": ">=20.0.0" }, |
"description": "Set the 'tsConfig' option to build and test targets to help with Angular migration issues.", |
||||
"description": "Migrate imports of `provideServerRendering` from `@angular/platform-server` to `@angular/ssr`.", |
"factory": "./src/migrations/update-21-5-0/set-tsconfig-option", |
||||
"factory": "./src/migrations/update-21-2-0/migrate-provide-server-rendering-import", |
|
||||
"package": "@nx/angular", |
"package": "@nx/angular", |
||||
"name": "migrate-provide-server-rendering-import" |
"name": "set-tsconfig-option" |
||||
}, |
}, |
||||
{ |
{ |
||||
"version": "21.2.0-beta.3", |
"cli": "nx", |
||||
"requires": { "@angular/core": ">=20.0.0" }, |
"version": "21.5.0-beta.2", |
||||
"description": "Replace `provideServerRouting` and `provideServerRoutesConfig` with `provideServerRendering` using `withRoutes`.", |
"requires": { "@angular/core": ">=20.2.0" }, |
||||
"factory": "./src/migrations/update-21-2-0/replace-provide-server-routing", |
"description": "Update the @angular/cli package version to ~20.2.0.", |
||||
|
"factory": "./src/migrations/update-21-5-0/update-angular-cli", |
||||
"package": "@nx/angular", |
"package": "@nx/angular", |
||||
"name": "replace-provide-server-routing" |
"name": "update-angular-cli-version-20-2-0" |
||||
}, |
}, |
||||
{ |
{ |
||||
"version": "21.2.0-beta.3", |
"version": "21.5.0-beta.2", |
||||
"requires": { "@angular/core": ">=20.0.0" }, |
"requires": { "@angular/core": ">=20.2.0" }, |
||||
"description": "Update the generator defaults to maintain the previous style guide behavior.", |
"description": "Remove any Karma configuration files that only contain the default content. The default configuration is automatically available without a specific project configurationfile.", |
||||
"factory": "./src/migrations/update-21-2-0/set-generator-defaults-for-previous-style-guide", |
"factory": "./src/migrations/update-21-5-0/remove-default-karma-configuration-files", |
||||
"package": "@nx/angular", |
"package": "@nx/angular", |
||||
"name": "set-generator-defaults-for-previous-style-guide" |
"name": "remove-default-karma-configuration-files" |
||||
}, |
}, |
||||
{ |
{ |
||||
"version": "21.2.0-beta.3", |
"cli": "nx", |
||||
"requires": { "@angular/core": ">=20.0.0" }, |
"version": "21.6.1-beta.2", |
||||
"description": "Update 'moduleResolution' to 'bundler' in TypeScript configurations. You can read more about this here: https://www.typescriptlang.org/tsconfig/#moduleResolution.", |
"requires": { "@angular/core": ">=20.3.0" }, |
||||
"factory": "./src/migrations/update-21-2-0/update-module-resolution", |
"description": "Update the @angular/cli package version to ~20.3.0.", |
||||
|
"factory": "./src/migrations/update-21-6-1/update-angular-cli", |
||||
"package": "@nx/angular", |
"package": "@nx/angular", |
||||
"name": "update-module-resolution" |
"name": "update-angular-cli-version-20-3-0" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "20.2.0", |
||||
|
"description": "Replaces usages of the deprecated Router.getCurrentNavigation method with the Router.currentNavigation signal", |
||||
|
"factory": "./bundles/router-current-navigation.cjs#migrate", |
||||
|
"optional": true, |
||||
|
"package": "@angular/core", |
||||
|
"name": "router-current-navigation" |
||||
|
}, |
||||
|
{ |
||||
|
"version": "20.3.0", |
||||
|
"description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.", |
||||
|
"factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate", |
||||
|
"package": "@angular/core", |
||||
|
"name": "add-bootstrap-context-to-server-main" |
||||
} |
} |
||||
] |
] |
||||
} |
} |
||||
|
|||||
@ -1,5 +1,6 @@ |
|||||
|
import { provideZoneChangeDetection } from "@angular/core"; |
||||
import { bootstrapApplication } from '@angular/platform-browser'; |
import { bootstrapApplication } from '@angular/platform-browser'; |
||||
import { appConfig } from './app/app.config'; |
import { appConfig } from './app/app.config'; |
||||
import { AppComponent } from './app/app.component'; |
import { AppComponent } from './app/app.component'; |
||||
|
|
||||
bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err)); |
bootstrapApplication(AppComponent, {...appConfig, providers: [provideZoneChangeDetection(), ...appConfig.providers]}).catch(err => console.error(err)); |
||||
|
|||||
@ -1,5 +1,6 @@ |
|||||
|
import { provideZoneChangeDetection } from "@angular/core"; |
||||
import { bootstrapApplication } from '@angular/platform-browser'; |
import { bootstrapApplication } from '@angular/platform-browser'; |
||||
import { appConfig } from './app/app.config'; |
import { appConfig } from './app/app.config'; |
||||
import { AppComponent } from './app/app.component'; |
import { AppComponent } from './app/app.component'; |
||||
|
|
||||
bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err)); |
bootstrapApplication(AppComponent, {...appConfig, providers: [provideZoneChangeDetection(), ...appConfig.providers]}).catch(err => console.error(err)); |
||||
|
|||||
@ -1,5 +1,6 @@ |
|||||
|
import { provideZoneChangeDetection } from "@angular/core"; |
||||
import { bootstrapApplication } from '@angular/platform-browser'; |
import { bootstrapApplication } from '@angular/platform-browser'; |
||||
import { appConfig } from './app/app.config'; |
import { appConfig } from './app/app.config'; |
||||
import { AppComponent } from './app/app.component'; |
import { AppComponent } from './app/app.component'; |
||||
|
|
||||
bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err)); |
bootstrapApplication(AppComponent, {...appConfig, providers: [provideZoneChangeDetection(), ...appConfig.providers]}).catch(err => console.error(err)); |
||||
|
|||||
Loading…
Reference in new issue