Allow control over git exclude behavior #2076
Replies: 1 comment
-
Have you tried using a soft symlink? See https://vike.dev/filesystem-routing#crawl-space.
If that's the case, then Vike should eventually add some documentation about this techique at https://vike.dev/build-your-own-framework. If you're up for it, we can discuss whether it really is the best setup. (Tbh I ain't sure that's the case.) Why not publishing it as a private npm package while using semver? In other words, you'll be publishing and managing your internal framework similarly to an open source project like Vike (while keeping everything private and internal). Also, in case you're company is up for it, you can sponsor Vike for a tigh-knit collaboration. (Actually, one of Vike's sponsor is also building an internal company framework). |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using Vike as the base for a generic company framework that should power multiple separate sites within our network, each with its own pages, components, styles, components, etc. One of the most straight-forward ways to do this seems to be to simply drop a directory with all the local files bundled inside the framework installation, as Vike will still find the page files.
However, our framework and the individual sites should each have their own git repository, the sites shouldn't be committed to the generic framework's repo. This is where Vike's git-based file indexing is causing some issues, as adding the local site directory to
.gitignore
, registering it as a submodule and possibly.git/info/exclude
all result in Vike ignoring the contents of that directory. I think it can be narrowed down togit ls-files ---exclude-standard
being hardcoded incrawlPlusFiles.js
, and it would be helpful to have an option to adjust these parameters.Other ideas for allowing local templates are welcome. I've played around with symlinks, import rewrites and all sorts, but so far this seems to be the path of least resistance, bar this one quibble. Most of the potential alternatives I could come up with also still called for a way to exclude local files in git, while still allowing them to be found by Vike.
Thank you in advance, kind regards
Beta Was this translation helpful? Give feedback.
All reactions