Skip to content

[EPIC] React Generator #350

@BenjaminPabst

Description

@BenjaminPabst

For Version 8 of onecx we want to provide a react generator next to the angular one.

To make this work, we also will refactor the existing package namings / structure a bit:

  • @onecx/nx-plugin package will be renamed to @onecx/angular-generator
  • @onecx/create-workspace will be adapted to support ngrx and react as flavors

Our react generator will support similar features as the angular generator:

  • Create a Feature (baseline folders, state management)
  • For a resource, create a:
    • search page
    • details page
      • with and without edit mode
    • empty page
    • create-edit dialog
    • delete dialog
  • Pre-Commit Checks (husky, etc. => reuse angular version, combine via shared evtl.)

We also have some characteristics the react generator should have:

  • Use ts-query instead of find/replace
  • Use zustand for state management
  • Use vitest for tests
  • Use similar logging as angular generator
  • Use similar file-splitting as angular generator (same mechanics)
  • Use primereact for components
  • Implement onecx mechanics for theming, permissions, etc.
  • 100% test coverage for initial version generated
  • Documentation for react generator (for each generator+step)
    • Document Action Steps that need manual adaptions (in-code + docs) also for tests!

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No fields configured for Epic.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions