Skip to content

Conversation

@yavorsk
Copy link
Contributor

@yavorsk yavorsk commented Mar 6, 2025

Description / Motivation

Update the build time automation approach for the jss application:

  • cli renamed to 'scs'
  • introduced 'scs build' and 'scs scaffold' cli commands
  • introduce sitecore.cli.config.ts:
    • the sitecore.cli.config exposes a defineCliConfig function that populates the required configurations
    • configures the functions that are going to be executed during build time by the cli
      • generateMetadata
      • generateSies
    • configures the scaffold component command
      • users can provide their own custom templates for scaffolding components
      • default templates (default and byoc components) are provided on the framework specific package level
  • the build time artifacts are placed under '.sitecore' folder at the root of the app
  • updated the starter app
    • packages scripts
    • references to sites.json

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)

@yavorsk yavorsk changed the title Feature/jss 4735 [core] [cli] [nextjs] [create-sitecore-jss] Build time automation Mar 6, 2025
@yavorsk yavorsk requested a review from illiakovalenko March 6, 2025 12:54
yavorsk and others added 3 commits March 10, 2025 09:48
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
yavorsk and others added 21 commits March 10, 2025 09:53
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
Copy link
Collaborator

@illiakovalenko illiakovalenko 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! Good job!
Few last minor things and then feel free to merge! 👍

yavorsk and others added 2 commits March 10, 2025 16:39
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
@yavorsk yavorsk merged commit b61df9e into dev Mar 10, 2025
1 check passed
@yavorsk yavorsk deleted the feature/JSS-4735 branch March 10, 2025 14:51
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.

4 participants