Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 16, 2021 03:41 am GMT

Scaffolding Static Web Apps

Jesus thats a lot of Static Web Apps (meme)

Modified version of this comic

Over the past 18 months Ive created a lot of Azure Static Web Apps, like a lot. Ive hit the quota of free apps several times and had to clean out demos to keep testing things!

But its always a little bit tedious, running create-react-app, setting up Functions, etc. so I went about creating a GitHub repo template for a basic React + TypeScript + Functions app. Then sometimes Id be wanting a different framework, so Id go off hunting for a new template, rinse and repeat.

Enter create-swa-app

create-swa-app demo

To tackle this, I decided to create a command line tool to be used with npm init, @aaronpowell/swa-app, which will guide you through the creation using one of the templates that is listed on awesome-static-web-apps. It will also offer to create a GitHub repo for you using the template (this will prompt for a GitHub sign in workflow), so youll be ready to deploy it to Azure!

Think of this as a helpful starting point before jumping into the SWA CLI or VS Code extension.

Hopefully youll find this as a useful way to scaffold up a Static Web Apps project!


Original Link: https://dev.to/azure/scaffolding-static-web-apps-4p97

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To