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

Modernize example with support for ES Modules #5

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ccjernigan
Copy link

@ccjernigan ccjernigan commented Jan 29, 2024

This PR modernizes the Kotlin Cloudflare Worker example in several ways:

  1. Updates Gradle and Kotlin dependencies
  2. Improve build performance and configurability with new Gradle and Kotlin build features
  3. Refactor to use a Gradle submodule to contain worker-app (which makes the following changes easier)
  4. Migrate from Service Workers to ES Modules (enabling future changes to support new Cloudflare features like D1 or Vectorize)
  5. Add integration test with Miniflare by introducing miniflare-lib for the Miniflare external classes, plus worker-integration-test for the test cases. (Note that the integration tests are in a separate module instead of worker-app/jsTest, because worker-app uses the Kotlin browser target to enable Kotlin packaging tasks, while Miniflare requires the nodejs target)

These changes could be broken into independent pull requests in top-to-bottom order, although they'd need to be created one at a time due to later changes depending on earlier changes. Let me know if that would be preferred.

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.

1 participant