Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nextjs] Move template related script to the base package #1520

Merged
merged 12 commits into from
Jun 12, 2023
Merged

Conversation

illiakovalenko
Copy link
Contributor

@illiakovalenko illiakovalenko commented Jun 12, 2023

Description / Motivation

  • [sitecore-jss-nextjs]:
    • Introduced ComponentBuilder class for generating component factories and module factories.
    • ComponentPropsService componentModule property renamed to moduleFactory.
    • Adjusted ComponentModule definition:
      • renamed to ModuleFactory.
      • Module type besides the initial limited set of props now can also include any React component. React.Component is replaced by React.ComponentType.
  • [sitecore-jss-dev-tools]:
    • Introduced nextjs submodule, which contains component builder generation functionality.
  • [templates/nextjs]:
    • Introduced plugins architecture for component builder and scaffold component generation processes.
    • Reused new utils added to sitecore-jss-dev-tools.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@illiakovalenko illiakovalenko changed the title Commit [Nextjs] Move template related script to the base package Jun 12, 2023
@illiakovalenko illiakovalenko requested a review from a team June 12, 2023 08:18
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

Looks great! I've approved, but see some suggestions / questions for consideration.

@illiakovalenko illiakovalenko requested a review from ambrauer June 12, 2023 15:15
@ambrauer
Copy link
Contributor

👍

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