Add project scaffolding #384
Replies: 6 comments
-
Unless it's for setting up the SWA config file (per #20) I feel like the implementation effort would greatly outweigh the user value. We have a lot of permutations that we'd need to support, first there's the client framework (React, Vue, Angular, Svelte, Vanilla JS, Blazor), then whether you want an API, and if so, what's the API written in (JS, TypeScript, C#, F#, Python). Then there's static site generators (VuePress, Gatsby, Hugo, Jekyll, Nuxt) that would also be options. |
Beta Was this translation helpful? Give feedback.
-
Thinking about this - would it be possible to use the GitHub repo templates to generate a project? That would make it easier to have the permutations handled (just create a new template) |
Beta Was this translation helpful? Give feedback.
-
I am in favor of this 👍 |
Beta Was this translation helpful? Give feedback.
-
We need to think about what problem this addresses. Is the goal to prescribe an opinionated folder structure? GitHub templates might be a good idea but there's a maintenance overhead to them. How many people would find them useful? We'll be doing some research studies in the next few months around the CLI. We'll include the getting started experience. /cc @Reshmi-Sriram |
Beta Was this translation helpful? Give feedback.
-
The goal would be to give people a starting point for creating a project, whether they are experienced with SWA or it's their first time. I think of it in a similar manner to someone using |
Beta Was this translation helpful? Give feedback.
-
btw, I created a standalone tool to do this - https://dev.to/azure/scaffolding-static-web-apps-4p97 |
Beta Was this translation helpful? Give feedback.
-
Describe the solution you'd like
As a user I'd like to be able to use
swa
to scaffold a new project structure.Example: running
swa init
should produce the following project structure:Other options/questions:
api
folder?Beta Was this translation helpful? Give feedback.
All reactions