Skip to content

What is the absolute minimum that can be in a GitHub repo for it to work with Azure 'Static Web Apps'? #24

Description

@oshihirii

I would like to create a really simple Single Page Application on Azure.

I have cloned https://github.com/staticwebdev/vanilla-basic

It has lots of folders and files which are very foreign to me (eg .devcontainer, .github/workflows, tests, playwright, typescript files)

I do not use Visual Studio Code Editor and do not want anything installed except for what is required for a site to run on Azure.

What is the absolute minimum that can be in a GitHub repo for it to work with Azure 'Static Web Apps'?

This is what the current default repo contents are:

.devcontainer
.github/workflows
src
tests
.gitignore
package-lock.json
package.json
playwright.config.ts
readme.md

Ideally, I would just like it to contain:

/js
/css
index.html

(It would be great if a tutorial existed which demonstrated how to create such a simple repo for Azure, I can't find one).

Activity

  1. changed the title [-]What is the absolute minimum that can be in a GitHub repo for it to work with Azure 'Static Web Apps`?[/-] [+]What is the absolute minimum that can be in a GitHub repo for it to work with Azure 'Static Web Apps'?[/+] on Oct 22, 2022
  2. tymurbaniak commented on Jan 6, 2023

    @tymurbaniak

    You can remove all except for .github/workflows - if you are following tutorial on creating static web app with vs code there is probably github action defined, that deploys contents to azure. So for you the project structure would look like this:

    .github/workflows /js /css index.html

    Also from .github/workflows you can remove playwright-onDemand.yml and playwright-scheduled.yml - those are actions defined to run playwright tests, but since tests, package.json, package-lock.json and playwright.config.ts are gone, they won't work (they don't work anyway, because some referenced packages aren't maintained, but that shouldn't bother you).

    It may be helpful to have .gitignore and readme.md, but it's up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions