Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project scaffolding #21

Closed
manekinekko opened this issue Oct 18, 2020 · 6 comments
Closed

Add project scaffolding #21

manekinekko opened this issue Oct 18, 2020 · 6 comments
Labels
priority: low (P2) Low priority scope: cli Issues happened a the ./src/cli level type: enhancement New feature or request
Projects

Comments

@manekinekko
Copy link
Member

manekinekko commented Oct 18, 2020

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:

├── api
│   └── <azure functions project>
├── app
│   └── <front-end project>
└── swa.json

Other options/questions:

  • add an interactive mode (like in https://hexa.run)?
  • only scaffold the api folder?
@manekinekko manekinekko added priority: medium (P1) Medium priority scope: cli Issues happened a the ./src/cli level type: enhancement New feature or request labels Oct 18, 2020
@aaronpowell
Copy link
Contributor

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.

@manekinekko manekinekko added this to To do in Pre-GA Nov 5, 2020
@manekinekko manekinekko removed this from To do in Pre-GA Mar 9, 2021
@manekinekko manekinekko added this to To do in Post-GA via automation Mar 9, 2021
@manekinekko manekinekko pinned this issue Mar 9, 2021
@manekinekko manekinekko added priority: low (P2) Low priority and removed priority: medium (P1) Medium priority labels Apr 19, 2021
@aaronpowell
Copy link
Contributor

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)

@manekinekko
Copy link
Member Author

I am in favor of this 👍

@anthonychu
Copy link
Member

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

@aaronpowell
Copy link
Contributor

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.

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 func init to setup the starting point for a Functions app.

@aaronpowell
Copy link
Contributor

btw, I created a standalone tool to do this - https://dev.to/azure/scaffolding-static-web-apps-4p97

@Azure Azure locked and limited conversation to collaborators Feb 2, 2022
@Reshmi-Sriram Reshmi-Sriram converted this issue into discussion #384 Feb 2, 2022
@Reshmi-Sriram Reshmi-Sriram unpinned this issue Feb 2, 2022
@manekinekko manekinekko moved this from To do to Done in Post-GA Mar 30, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
priority: low (P2) Low priority scope: cli Issues happened a the ./src/cli level type: enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants