Skip to content
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

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

Open
oshihirii opened this issue Oct 22, 2022 · 1 comment

Comments

@oshihirii
Copy link

oshihirii commented Oct 22, 2022

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).

@oshihirii oshihirii 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'? Oct 22, 2022
@tymurbaniak
Copy link

tymurbaniak commented Jan 6, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants