Skip to content

feat: angular 21generator#348

Draft
prathamMalavi wants to merge 8 commits into
onecx:mainfrom
prathamMalavi:feat/angular-21-generator
Draft

feat: angular 21generator#348
prathamMalavi wants to merge 8 commits into
onecx:mainfrom
prathamMalavi:feat/angular-21-generator

Conversation

@prathamMalavi

Copy link
Copy Markdown
Contributor

No description provided.

@prathamMalavi prathamMalavi linked an issue May 7, 2026 that may be closed by this pull request
Comment thread nx-plugin/src/generators/angular/generator.ts Outdated
Comment thread nx-plugin/src/generators/angular/files/src/test-setup.ts.template
@mollend0

Copy link
Copy Markdown
Contributor

will the renaming of the package also be included in this ticket?
see: #329 (comment)

@prathamMalavi

prathamMalavi commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

will the renaming of the package also be included in this ticket? see: #329 (comment)

Will push a new PR once this is merged as it does have a lot of file changes

Co-authored-by: Copilot <copilot@github.com>
@prathamMalavi prathamMalavi reopened this May 12, 2026
@prathamMalavi prathamMalavi linked an issue May 22, 2026 that may be closed by this pull request
@@ -1,5 +1,13 @@
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone'

// JSDOM does not implement `innerText` which is used by Angular's testing utilities. This causes tests to fail with:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"This causes tests to fail with: " -> is this unfinished?

const oneCXLibVersion = '^7.7.2';
const angularVersion = '^20.3.9';
const oneCXLibVersion = '^8.2.2';
const angularVersion = '21.2.9';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const angularVersion = '21.2.9';
const angularVersion = '^21.2.9';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With new module federation:

  • requiredVersion = package.json version
  • providedVersion = package-lock.json version

Because of this, we should use ^21.0.0 for every generated app.

Comment on lines +126 to +130
'@ngrx/component': '21.1.0',
'@ngrx/effects': '21.1.0',
'@ngrx/router-store': '21.1.0',
'@ngrx/store': '21.1.0',
'@ngrx/store-devtools': '21.1.0',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'@ngrx/component': '21.1.0',
'@ngrx/effects': '21.1.0',
'@ngrx/router-store': '21.1.0',
'@ngrx/store': '21.1.0',
'@ngrx/store-devtools': '21.1.0',
'@ngrx/component': '^21.1.0',
'@ngrx/effects': '^21.1.0',
'@ngrx/router-store': '^21.1.0',
'@ngrx/store': '^21.1.0',
'@ngrx/store-devtools': '^21.1.0',

'@ngrx/store-devtools': '21.1.0',
'@webcomponents/webcomponentsjs': '^2.8.0',
'zone.js': '~0.15.0',
'zone.js': '0.16.1',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'zone.js': '0.16.1',
'zone.js': '~0.16.1',

'@angular/platform-browser-dynamic': angularVersion,
'@angular/router': angularVersion,
primeflex: '^3.3.1',
primeflex: '^4.0.0',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to update primeflex to avoid dependency issues? If not I would not do that since we should move to tailwind anyways.

Comment on lines +170 to +175
'angular-eslint': '21.3.1',
'@angular-eslint/builder': '21.3.1',
'@angular-eslint/eslint-plugin': '21.3.1',
'@angular-eslint/eslint-plugin-template': '21.3.1',
'@angular-eslint/schematics': '21.3.1',
'@angular-eslint/template-parser': '21.3.1',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'angular-eslint': '21.3.1',
'@angular-eslint/builder': '21.3.1',
'@angular-eslint/eslint-plugin': '21.3.1',
'@angular-eslint/eslint-plugin-template': '21.3.1',
'@angular-eslint/schematics': '21.3.1',
'@angular-eslint/template-parser': '21.3.1',
'angular-eslint': '^21.3.1',
'@angular-eslint/builder': '^21.3.1',
'@angular-eslint/eslint-plugin': '^21.3.1',
'@angular-eslint/eslint-plugin-template': '^21.3.1',
'@angular-eslint/schematics': '^21.3.1',
'@angular-eslint/template-parser': '^21.3.1',

jest: '^30.0.0',
'jest-environment-jsdom': '^30.0.0',
'jest-preset-angular': '^16.0.0',
'jest-preset-angular': '16.1.4',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'jest-preset-angular': '16.1.4',
'jest-preset-angular': '^16.1.4',

Comment on lines +74 to +78
'@ngrx/effects': '21.1.0',
'@ngrx/router-store': '21.1.0',
'@ngrx/store': '21.1.0',
'@ngrx/component': '21.1.0',
'@ngrx/store-devtools': '21.1.0',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'@ngrx/effects': '21.1.0',
'@ngrx/router-store': '21.1.0',
'@ngrx/store': '21.1.0',
'@ngrx/component': '21.1.0',
'@ngrx/store-devtools': '21.1.0',
'@ngrx/effects': '^21.1.0',
'@ngrx/router-store': '^21.1.0',
'@ngrx/store': '^21.1.0',
'@ngrx/component': '^21.1.0',
'@ngrx/store-devtools': '^21.1.0',

readonly locale = inject(LOCALE_ID);

calendars = viewChildren(DatePicker)
// TODO: use signal after updating libs and pass appropriate value accordingly in buildSearchCriteria.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve TODO

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should use the new utility here

@prathamMalavi prathamMalavi marked this pull request as draft May 26, 2026 05:45
@prathamMalavi

Copy link
Copy Markdown
Contributor Author

Added to draft for now

  • Requires the module federation utility to be merged 1st and release

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.

Migrate generator to use @module-federation as build tool Refactor generator to output Angular 21 apps

3 participants