torenware / vite-go

Go module to integrate Vue 3, React, and Svelte projects with Golang web projects using Vite 2 and 3
Other
206 stars 10 forks source link

Support Vite Projects stored outside of Go project source #5

Open muellerkyle opened 1 year ago

muellerkyle commented 1 year ago

I ran into an issue where I was unable to get this library to find the package.json file from my vite project without having to make a modification.

I structure my projects so that my JS source sits along side my go source, like the following:

In this configuration, supplying a JSProjectPath cannot resolve the package.json file in any way. But, by adding a configuration option, we can let the library know that it needs to use the path "as given" to go look for the package.json file.

Summary of Changes

torenware commented 1 year ago

This looks like an excellent addition. Let me see if I can come up with a test with it; I'll add it to your PR. Thanks.

mperkins808 commented 9 months ago

This looks like an excellent addition. Let me see if I can come up with a test with it; I'll add it to your PR. Thanks.

Is there any update on this? It would be a huge add to the project for go servers that are more complex