Skip to content

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:

@changeset-bot
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
@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.

5 participants