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

Use shared bundling setup for all assets #394

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Use shared bundling setup for all assets #394

merged 1 commit into from
Feb 6, 2024

Conversation

jonatanklosko
Copy link
Member

I created a small package wrapping common setup for bundling kino assets (@livebook/kino-bundler) and we now use it for all assets in this repo.

Notably, the package brings Tailwind configured to match Livebook, which means that Kinos can easily use the Livebook palette without copying individual colors, which we used to do over and over.

Given that kino components are quite small, I don't think it's worth maintaining a package with shared UI components. The main pain point so far was that whenever we copied components, we needed to copy the relevant CSS classes and that could quickly lead to unnecessary or missing classes and was messy overall. Now that each component is properly encapsulated, copying a couple of them around should be manageable, while being easy to change if needed.

I migrated the Remote execution cell to React, so there is no more Vue in this repo. It would be nice to migrate the other smart cells accordingly, but it's not a high priority, the important part is that we have a better reference implementation.

The current setup of bundler and React also improves dev experience, now npm run dev includes dev warnings and source maps.

@cristineguadelupe
Copy link
Contributor

Nice! 😊

@jonatanklosko jonatanklosko merged commit c33953c into main Feb 6, 2024
1 check passed
@jonatanklosko jonatanklosko deleted the jk-bundler branch February 6, 2024 13:20
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.

3 participants