-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update DeepHavenJsApiLinker to allow exporting GWT JsTypes as ES6 module #2733
Update DeepHavenJsApiLinker to allow exporting GWT JsTypes as ES6 module #2733
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
…es' into export-gwt-js-types-as-es6-modules # Conflicts: # web/client-api/src/main/java/io/deephaven/web/DeephavenJsApiLinker.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to create tickets for some additional things, such as publishing these as a package in npmjs (e.g. @deephaven/jsapi
and/or @deephaven/jsapi-internal
).
Whitespacing is inconsistent in many of the new lines in these examples.
web/client-api/src/main/java/io/deephaven/web/DeephavenJsApiLinkerTemplate.js
Outdated
Show resolved
Hide resolved
web/client-api/src/main/java/io/deephaven/web/DeephavenJsApiLinker.java
Outdated
Show resolved
Hide resolved
web/client-api/src/main/java/io/deephaven/web/public/linked/child.html
Outdated
Show resolved
Hide resolved
web/client-api/src/main/java/io/deephaven/web/public/rollup.html
Outdated
Show resolved
Hide resolved
web/client-api/src/main/java/io/deephaven/web/public/freeze.html
Outdated
Show resolved
Hide resolved
web/client-api/src/main/java/io/deephaven/web/public/linked/index.html
Outdated
Show resolved
Hide resolved
Spoke with @niloc132 about this, and the change looks good as a halfway point, however it makes consuming the library more difficult. Ultimately suggest we keep this as a fork or a separate branch until we have the full thing exported as a module (dh-internal as well) and published to npmjs. The reason why this is difficult is because the Web UI still needs to load it remotely from the server. Currently, it's just doing a regular That shim only works if Once dh-internal is also a module, and they're both published to npmjs, theoretically should be able to change jsapi-shim to just:
And everything should work. (We could also just change all our imports from So, I approve these changes, but please don't merge them to main, and keep a separate long running branch for this development :). |
Labels indicate documentation is required. Issues for documentation have been opened: How-to: https://github.com/deephaven/deephaven.io/issues/2180 |
No description provided.