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

rpk/transform: support javascript and typescript #18078

Merged
merged 10 commits into from
May 2, 2024

Commits on Apr 25, 2024

  1. transform-sdk/js: enable lto for release builds

    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    1463e10 View commit details
    Browse the repository at this point in the history
  2. transform-sdk/js: fix package.json

    to be valid json 🤦
    
    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    562dfcc View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. rpk/transform: support javascript and typescript

    To support JS and TS we need:
    
    1) To generate an NPM project with esbuild and (optional) typescript
    2) A new buildpack that has our JS VM and can package that with the
       source
    
    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    53ab784 View commit details
    Browse the repository at this point in the history
  2. gha: support deploying javascript sdk

    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    6e494e2 View commit details
    Browse the repository at this point in the history
  3. transform-sdk/js: Add a script to package js toolchain

    This script will build the binaries that RPK needs when turning JS ->
    Wasm. The resulting tarballs need to be hosted somewhere (S3?) for RPK
    to download.
    
    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    9514ba5 View commit details
    Browse the repository at this point in the history
  4. transform-sdk/js: disable thinLTO

    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    bf88575 View commit details
    Browse the repository at this point in the history
  5. transform-sdk/js: correct module name

    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    52aebba View commit details
    Browse the repository at this point in the history
  6. transform-sdk/js: add package-lock.json

    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    fc7fffb View commit details
    Browse the repository at this point in the history
  7. transform-sdk/js: use jsdoc comments

    Using this other type of comment allows LSPs to show the docs inline.
    
    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    c6f7f4b View commit details
    Browse the repository at this point in the history
  8. rpk/transform: better binary lookup error handling

    Specifically check we can't find the binary, and print the error if it
    is less expected.
    
    Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
    rockwotj committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    ba6e18b View commit details
    Browse the repository at this point in the history