arnoson / kirby-vite

Use Kirby CMS together with Vite
MIT License
81 stars 7 forks source link

Is there a way to install it via git submodule? #30

Closed dustsucker closed 8 months ago

dustsucker commented 1 year ago

We have a big page using only submodules and want to integrate Some new stuff with svelte as web components is there a way to use it with submodules?

arnoson commented 1 year ago

I don't use submodules, so I'm not sure. But although this is a monorepo, it also acts as a normal repository (the index.php is linking to the actual kirby plugin located in packages/kirby-vite). So this should work, I guess. Are there any specific requirements for a repository so it can be used as a submodule?

matteocontrini commented 8 months ago

It seems to be working fine as a submodule.

Here's what I used to pin a specific version of the plugin with the submodule.

git submodule add https://github.com/arnoson/kirby-vite.git site/plugins/vite
cd site/plugins/vite && git checkout v5.3.0

And then commit in the parent repo.

arnoson commented 8 months ago

Great, thanks for the explanation @matteocontrini!