vscode-azurestaticwebapps icon indicating copy to clipboard operation
vscode-azurestaticwebapps copied to clipboard

Add more frameworks to build preset list

Open nturinski opened this issue 4 years ago • 3 comments

And more frameworks in general.

nturinski avatar Jul 27 '21 19:07 nturinski

I've gathered some popular frameworks/SSGs

  • [x] Vuepress
  • [x] Blazor
  • [x] Gatsby
  • [x] Hugo
  • [x] React
  • [x] Svelte
  • [x] Vue
  • [x] Angular
  • [ ] Astro
  • [ ] Jekyll
  • [ ] Next.js
  • [ ] Preact
  • [ ] Sphinx
  • [ ] Zola
  • [ ] Elder.js
  • [ ] Nuxt.js
  • [ ] Eleventy

alexweininger avatar Jul 28 '21 22:07 alexweininger

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 avatar Aug 01 '21 00:08 anthonychu

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

anthonychu avatar Aug 01 '21 00:08 anthonychu