Julien-R44 / vite-plugin-validate-env

✅ Vite plugin for validating your environment variables
MIT License
164 stars 6 forks source link

collecting all errors, and see #5

Closed reslear closed 1 year ago

reslear commented 1 year ago

hi @Julien-R44 i'm suggest, collect all errors and display before exit all missing variables.

My case, the build takes 10 minutes, the plugin reports about missing variable. We add a variable, run the build again, again 10 minutes, and so on...

similar feature released in znv for backend.

image

Julien-R44 commented 1 year ago

Hey dude! It's a good idea, you're right, thanks. I will try to do it this weekend

However: which build are you talking about? A docker image, or something else?

Because normally if you are missing an environment variable, the plugin is supposed to warn you before building anything, just after typing vite build

Julien-R44 commented 1 year ago

Btw, thanks for sharing znv. There are a lot of good ideas in there. I'll steal some of them 😋

reslear commented 1 year ago

Hey dude! It's a good idea, you're right, thanks. I will try to do it this weekend

However: which build are you talking about? A docker image, or something else?

Because normally if you are missing an environment variable, the plugin is supposed to warn you before building anything, just after typing vite build

yes, is vite build in docker container on gitlab ci/cd with ionic appflow for mobile deploy

Julien-R44 commented 1 year ago

Here is the new output :

image

reslear commented 1 year ago

stylish and sensible)