microsoft / vscode-azurestaticwebapps

Azure Static Web Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps
MIT License
91 stars 35 forks source link

Add more frameworks to build preset list #459

Open nturinski opened 3 years ago

nturinski commented 3 years ago

And more frameworks in general.

alexweininger commented 3 years ago

I've gathered some popular frameworks/SSGs

anthonychu commented 3 years ago

For eleventy in particular, their default scaffolding does not create a build script in package.json, so those apps don't build automatically in Oryx. IMO we shouldn't add it as it gives the impression that it eleventy will work when there's a good chance the build will fail.

As for adding more frameworks, my opinion is that we should support popular frameworks (need to define "popular") and their default projects should build in Oryx. IMO we should add:

  • [ ] Astro
  • [x] Jekyll - supported by SWA/Oryx
  • [x] Next.js
  • [ ] Preact
  • [ ] Sphinx - not supported
  • [ ] Zola - not supported
  • [ ] Elder.js
  • [x] Nuxt.js
  • [ ] Eleventy
anthonychu commented 3 years ago

Actually Next.js and Nuxt.js both create build scripts that might not be compatible with SWA. They need to be modified to call generate. So I'm not sure if they should be included as presets either.

Our docs: https://docs.microsoft.com/en-us/azure/static-web-apps/deploy-nuxtjs https://docs.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs