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

idea: a clean subcommand to clear vinxi's build cache #361

Open
trusktr opened this issue Aug 31, 2024 · 0 comments
Open

idea: a clean subcommand to clear vinxi's build cache #361

trusktr opened this issue Aug 31, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@trusktr
Copy link

trusktr commented Aug 31, 2024

There's no command to clear vinxi's build cache.

For now, I run this in my Solid Start app:

rm -rf .output node_modules/.vinxi .vinxi

This is useful because sometimes one might apply a patch to node_modules (for example, with patch-package) and if vinxi already cached the node_modules build, the changes will not show up in the app.

The current workaround (rm -rf .output node_modules/.vinxi .vinxi) is a little cumbersome because I have to quite and restart vinxi dev` every time.

clean subcommand

Usage of a new clean subcommand would be:

vinxi clean

--clean option for other commands

Vinxi could also benefit from a --clean option that when used would first clear the cache, then build or run without the cache. For example:

vinxi dev --clean
vinxi start --clean
vinxi build --clean

I'm not sure if all of those sub commands use the cache, the --clean option would be for any subcommands that do rely on the cache.

In the case of vinxi dev --clean, it would also be convenient for the app to auto-restart on changes to node_modules files that were used in the app (because they are no longer being cached), the same as with changes to local app files.

Additionally, if the server does any sort of HTTP caching, it would be nice for that to also be skipped while the --clean option is enabled.

@trusktr trusktr changed the title need a clean cache command idea: a clean subcommand to clear vinxi's cache Aug 31, 2024
@trusktr trusktr changed the title idea: a clean subcommand to clear vinxi's cache idea: a clean subcommand to clear vinxi's build cache Aug 31, 2024
@nksaraf nksaraf added the good first issue Good for newcomers label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants