fresh icon indicating copy to clipboard operation
fresh copied to clipboard

feat: allow initalizing with "src" dir

Open csvn opened this issue 4 months ago • 0 comments

I have existing v1 Fresh projects that I was planning to upgrade to v2. But I was unsure about how to migrate, since I was using a src/ folder. By reading the source code, I found that with Vite, the root property can be used to select the root folder for all code.

This PR re-introduces the docs example for how to use a "src" folder from Fresh v1, but also adds a --src-dir option during init such that a project can be initialized with a src dir.

image

csvn avatar Sep 12 '25 18:09 csvn