Skip to content

Conversation

@dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Jan 30, 2026

Description

Add two shell scripts to simplify switching between local and remote GutenbergKit development:

  • Scripts/gutenbergkit-local.sh: Switches Package.swift to use a local path (../../GutenbergKit) and enables GUTENBERG_EDITOR_URL in the Jetpack scheme
  • Scripts/gutenbergkit-remote.sh: Restores the remote GitHub URL (version pulled from trunk) and disables GUTENBERG_EDITOR_URL

These scripts aren't completely necessary, it's just something I do very frequently. If others do not feel this is worthwhile, we can discard these changes.

Testing instructions

  1. Run ./Scripts/gutenbergkit-local.sh and verify:
    • Package.swift uses .package(path: "../../GutenbergKit")
    • Jetpack scheme has GUTENBERG_EDITOR_URL with isEnabled = "YES"
  2. Run ./Scripts/gutenbergkit-remote.sh and verify:
    • Package.swift uses .package(url: "https://github.com/wordpress-mobile/GutenbergKit", from: "X.Y.Z")
    • Jetpack scheme has GUTENBERG_EDITOR_URL with isEnabled = "NO"

Add two scripts to simplify switching between local and remote
GutenbergKit development:

- gutenbergkit-local.sh: Switches Package.swift to use local path
  and enables GUTENBERG_EDITOR_URL in Jetpack scheme
- gutenbergkit-remote.sh: Restores remote GitHub URL (version from
  trunk) and disables GUTENBERG_EDITOR_URL
@dangermattic
Copy link
Collaborator

1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@dcalhoun dcalhoun changed the title feat: Add scripts for toggling local GutenbergKit development task: Add scripts for toggling local GutenbergKit development Jan 30, 2026
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 30, 2026

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number30673
VersionPR #25184
Bundle IDorg.wordpress.alpha
Commit9dbe994
Installation URL7mrojnnca6sb8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 30, 2026

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number30673
VersionPR #25184
Bundle IDcom.jetpack.alpha
Commit9dbe994
Installation URL62beuof437e68
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

- Check if already in target state and exit early
- Verify expected patterns exist before attempting replacement
- Verify changes were applied after sed operations
Update message to reflect that version is extracted from trunk,
not git history.
Let users know that resolving package dependencies may take a while.
@sonarqubecloud
Copy link

@dcalhoun dcalhoun marked this pull request as ready for review January 30, 2026 22:02
@dcalhoun dcalhoun requested a review from kean January 30, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants