-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add options to define input and content glob pattern for tailwind #1
Conversation
For more context, you want this because you want to have two smart cells on Kino Flame because the k8s needs a yaml editor, and that cannot be enabled dynamically, right? |
Right. Plus, I am thinking about using this for kino_k8s, too. |
I really think we should have a single Flame cell with configurable backend, the same way we have a single Database connection cell. I think we should be able to make the editor togglable with reasonable API, I will look at that later today. Regardless, I'm ok with these additional config options. But also, I'm thinking perhaps we could have a built-in support for a multi-input configuration for having multiple kinos/smart cells in a single npm project (i.e. with a single build/watch commands). I will experiment with that later. |
That would definitely be better in this case.
Would be nice, too. I'm using https://github.com/mruoss/kino_k8s/blob/main/package.json Edit: just saw there is also npm-run-all2 |
FTR we now have API for toggling editor visibility livebook-dev/kino#467 :) |
I am thinking about this and trying to balance configurability and simplicity. I feel that the more generic we make the script, the less benefit there is (compared to what you already do in
Every directory in "scripts": {
"build": "kino-bundler --outdir '../lib/assets/[pack]/build'",
"dev": "npm run build -- --watch --dev"
} @mruoss if you have opinions on this, or another idea for how the script should work, let me now :) |
Oh yes I do agree. We can expect a fix directory structure here. You could even go a step further and be opinionated about |
Yeah, the main reason for customization is the |
@mruoss I've just published a new version with the above changes and updated Kino to use it. Feel free to try it out and if there's anything else needed, in particular for typescript, let me know! |
Hey, I love this module! But could we allow a bit more flexible in directory structure? When I create multiple smart cells in one kino library but want to share some elements (e.g. form elements) via a shared folder, this setup doesn't work.
The approach is simple: allow users to pass options for
--input
and--tailwind-content-glob
(or-c
, multiple entries are possible). The defaults for the new options are set to the values that were hardcoded before, so this change shouldn't break compatibility.