Usually, my Git structure is like
_data/ _media/ .git/ packages/ .gitignore
cd packages yarn create nuxt-app nuxt cd nuxt && rm -rf .git
This usually cause problems with VSCode and Vetur (Vue language server for VSCode), and sometimes also ESLint / Prettier language server, unless I
Also, Node.js isn't necessarily the only kind of project I have.
My approach makes it easily to migrate project scaffolding, I think, like deleting and creating a new one. Usually you cannot do this with project scaffolder.
git checkout new-branch git rm -rf -e .env **/* yarn create nuxt-app . # Do not create a new folder
This also causes problems with hosting services that have or rely on Git integration.
- Netlify and Vercel prefers Git integration; not locally built then upload.
- Heroku relies on either Git integration or Docker.
Now, where do I put
# Choice 1 netlify.toml # Choice 2 packages/nuxt/netlify.toml # Choice 3 - Both