Skip to content

feat(dev-cli): Remove macOS-specific Terminal functionality #3859

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

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

dstaley
Copy link
Member

@dstaley dstaley commented Jul 31, 2024

Description

This PR removes the macOS-specific functionality that was used to spawn a new Terminal window containing the builder for clerk-js in favor of simply using concurrently to run everything in the same terminal instance. To make it easier to distinguish the output, we use concurrently's prefixColors feature which prepends [packages] for the build process of dependencies and [clerk-js] for the clerk-js build.

Screen Shot 2024-07-31 at 16 36 36 PM

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

changeset-bot bot commented Jul 31, 2024

🦋 Changeset detected

Latest commit: d432332

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

This PR includes changesets to release 1 package
Name Type
@clerk/dev-cli 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

Copy link
Member

@brkalow brkalow left a comment

Choose a reason for hiding this comment

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

Love it!

Comment on lines -53 to -56
spawn('osascript', [
'-e',
`tell app "Terminal" to do script "cd ${cwd} && turbo run dev --filter=@clerk/clerk-js -- --env devOrigin=http://localhost:4000"`,
]);
Copy link
Member

Choose a reason for hiding this comment

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

apple script is wild 🪄

@dstaley dstaley marked this pull request as ready for review August 1, 2024 16:39
@dstaley dstaley merged commit 39df0b4 into main Aug 1, 2024
20 checks passed
@dstaley dstaley deleted the ds.feat/clerk-dev-concurrently branch August 1, 2024 16:39
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