Create a devcontainer feature to simplify install
devcontainers supports a feature specification, that simplifies adding something to a devcontainer base image (and removes the need for custom base images). More info on the background and philosophy can be found here.
Presently there is a devcontainer for SWA CLI, but it might be better to ship as a feature.
https://github.com/devcontainers/feature-starter contains a starter template for creating it (and its tests).
Sounds like a great addition to SWA_CLI @aaronpowell, we will add this to our backlog items. cc: @Reshmi-Sriram
Presently there is a devcontainer for SWA CLI, but it might be better to ship as a feature.
Just to add a precision here, there are currently two container images including the SWA CLI:
- A standalone container published on Docker Hub: https://hub.docker.com/r/swacli/static-web-apps-cli => This one allows to use the CLI without a local Node.js environment, using only Docker
- The Static Web Apps devcontainer: https://github.com/microsoft/vscode-dev-containers/tree/main/containers/azure-static-web-apps => This one is a full self-contained dev environment for SWA (not just the CLI) with Node, Python and Dotnet installed, along Azure and SWA CLI.
Both these images have their use cases, and while I agree adding a devcontainer feature would be a nice addition, it won't replace any of these existing solutions but rather comes as an additional option for people using dev containers (and the SWA devcontainer should then be updated to make use of it).