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

Refactor shared logic for generating package.json scripts for FF and FE #2386

Merged
merged 23 commits into from
Sep 25, 2024

Conversation

kjose90
Copy link
Member

@kjose90 kjose90 commented Sep 18, 2024

#2320

  • Consolidated the logic for generating package.json scripts into fiori-generator-shared, ensuring that both Fiori Elements and Freestyle applications use a common, reusable implementation.
  • Removed the previously siloed logic for script generation from the Fiori Elements and Freestyle writers
  • Added unit tests to validate the new shared script generation logic

Copy link

changeset-bot bot commented Sep 18, 2024

🦋 Changeset detected

Latest commit: 2e8cf5e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@sap-ux/fiori-freestyle-writer Minor
@sap-ux/fiori-generator-shared Minor
@sap-ux/fiori-elements-writer Minor
@sap-ux/generator-simple-fe Patch
@sap-ux/abap-deploy-config-inquirer Patch
@sap-ux/cap-config-writer Patch
@sap-ux/create Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kjose90 kjose90 marked this pull request as ready for review September 18, 2024 14:58
@kjose90 kjose90 requested review from a team as code owners September 18, 2024 14:58
devinea
devinea previously approved these changes Sep 24, 2024
Copy link
Member

@devinea devinea left a comment

Choose a reason for hiding this comment

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

Refactoring to remove duplication looks good.
writer snapshots not impacted by the refactoring ✅
Tested moved ✅
changeset ✅

Copy link
Contributor

@IainSAP IainSAP left a comment

Choose a reason for hiding this comment

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

Thanks @kjose90

  • Consolidates package script creation code
  • No updates to snapshots indicates functionally identical
  • Tests added to cover new code

Copy link
Member

@devinea devinea left a comment

Choose a reason for hiding this comment

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

Re-approving. Thanks

Copy link

sonarcloud bot commented Sep 25, 2024

@kjose90 kjose90 merged commit 04988f1 into main Sep 25, 2024
13 checks passed
@kjose90 kjose90 deleted the package-config-common branch September 25, 2024 15:19
devinea added a commit that referenced this pull request Sep 30, 2024
…on-CAP-Fiori-generation-into-a-CAP-project-folder

* origin/main:
  chore: apply latest changesets
  feat(ui-prompting): rename ui prompting examples package from `@sap-ux/prompting-ui` to `@sap-ux-private/ui-prompting-examples` (#2415)
  chore: apply latest changesets
  fix: adjust condition for dynamic header field content (#2412)
  chore: apply latest changesets
  feat(ui-prompting): support translation input fields for prompts (#2400)
  chore: apply latest changesets
  Renamed the skipLiveScript parameter to addLiveConfig  (#2405)
  chore: apply latest changesets
  fix: various ui improvements and bug fix (#2410)
  chore: apply latest changesets
  Refactor shared logic for generating package.json scripts for FF and FE (#2386)
  chore: apply latest changesets
  feat: enhance quick action with the template (#2388)
  chore: apply latest changesets
  fix(cpe): application mode after reload (#2389)
emrecevik06 pushed a commit that referenced this pull request Oct 11, 2024
…FE (#2386)

* refactoring shared logic for adding package json scriots for FF and FE

* add changeset

* add docs

* pnpm recursive install

* revert translations mockOnlyWarning

* fix sonar issues

* resolving conflictas after merge

* revise export of function

* change name to getPackageScripts

* fix test name

* test fix

* add lint ignore escape chars

* add lint ignore escape chars

* es lint

* add a comment explaining not to remove escape chars from command

---------

Co-authored-by: Austin Devine <[email protected]>
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.

3 participants