microsoft / microsoft/vscode-azurestaticwebapps
Create and deploy SWA from template without reloading VS Code
@alexweininger is already working on this.
Since Aug 7, 2021.
- Dominant language
- TypeScript
- Stars
- 99
- Forks
- 39
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 2
Description
Feature
Enable creating a SWA from one of these templates right from the extension. The goal will be to create the SWA with minimal input/config from user.
I'm imagining a flow similar to this:
- User clicks "Create from template button" (or other entry point).
- Quick pick to pick template. When the user picks a template, we'll create a repository using the template for them.
- Quick input to get app name. (at this point I believe we have enough information to go ahead and create the SWA, please correct me if I missed something)
- Clone their newly created repo and open it in VS Code.
After this process, the user has a created SWA and has the source open in VS Code.
Entry points
I'm going to need help coming up with good entry points (outside of the walkthrough) for this feature. Including it in the current create flow might add a step that most users won't care about.
My thoughts:
- Show "Create from template" in tree if they don't have any.
- Add a step asking users if they want to create from template somewhere in the current create flow.
Notes:
- To avoid hard coding a list of templates we can fetch a list of repositories and narrow the results by checking if the repo is a template. (I made sure this is possible)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.