microsoft / microsoft/vscode-azurestaticwebapps

Create and deploy SWA from template without reloading VS Code

Open
#452 1 comment 0 reactions 1 assignee View on GitHub

@alexweininger is already working on this.

Since Aug 7, 2021.

  • #461 by @alexweininger — closed without merging
  • #470 by @alexweininger — closed without merging
feature
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:

  1. User clicks "Create from template button" (or other entry point).
  2. Quick pick to pick template. When the user picks a template, we'll create a repository using the template for them.
  3. 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)
  4. 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:

  1. Show "Create from template" in tree if they don't have any.
  2. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.