Skip to content

Conversation

@addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Jan 24, 2025

Description / Motivation

  • Update azure-pipeline for publishing to npm.
  • Set initial version to 0.1.0
  • Packages would be published under the scope @sitecore-content-sdk
  • Renamed all packages by removing the sitecore-jss prefix
  • Update ref-docs

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)

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.

  • Token generation logic should be updated to check for "beta" as well, see here. Here I want to ask you to improve token resolution and just use a regexp without additional check, like this one [a-z](\.\d+). Instead of checking additionally for "canary" or "beta, we can just remove any possible build number.
  • Let's remove this reference in BYOC to sitecore-jss and XP, here
  • Update README
  • Noticed a random thing, let's remove this rn-config

@illiakovalenko
Copy link
Collaborator

@addy-pathania Regarding canary token "build number removal" you can see here how it's done, since I proposed the same to Stas

displayName: 'lint samples'
condition: and(succeeded(), ne(variables.shouldPublish, true))

# skipping the following steps until we publish the first canary
Copy link
Contributor Author

@addy-pathania addy-pathania Jan 30, 2025

Choose a reason for hiding this comment

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

skipping scaffolding samples since it tries to install dependencies from remote npm registery.
Will revert this after we publish first canary.

Copy link
Contributor

@art-alexeyenko art-alexeyenko left a comment

Choose a reason for hiding this comment

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

@addy-pathania This is huge, well done.
I've found a couple things that should be addressed before we merge, and I'll check the rest once these are done:

  • Ensure every package (plus sample) has the correct version in package.json
  • Manually re-generate ref-docs. You'll need to remove the old folders and create new ones per package

@art-alexeyenko
Copy link
Contributor

@addy-pathania there's one leftover reference to sitecore-jss- name in here:
https://github.com/Sitecore/xmc-jss-dev/blob/18b0378a84fc3764183fc13739bfd81ae84dbc4b/packages/create-sitecore-jss/src/templates/nextjs/src/lib/next-config/plugins/component-props.js#L11

with it, nextjs app doesn't build.

Please also update CONTRIBUTING.MD and README.md to outline the new flow for creating apps (with new names) and cleanup the old package names.

Copy link
Contributor

@art-alexeyenko art-alexeyenko left a comment

Choose a reason for hiding this comment

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

Looks good!
Let's publish this fella

@addy-pathania addy-pathania merged commit b77d647 into dev Feb 10, 2025
1 check passed
@addy-pathania addy-pathania deleted the feature/jss-4750 branch February 10, 2025 17:01
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.

5 participants