This is a template repo to enable anyone to create new PCF component repos with Dev Container config setup. With Dev Containers, you can develop entirely inside GitHub Codespaces. The biggest advantage is that you don't need all the dependencies like VSCode, .NET Framework, Node.js all installed on your local machine. Everything you need is right inside the browser.
- Create a new repo from this template by clicking the Use this Template button
- After the template has created your repo, you can open the repo in Codespaces by clicking Code -> Open with Codespaces
- After you are in Codespaces, create a new folder called src for storing PCF component
- PCF Builder and Power Platform Tools extensions are installed on the Dev Container. So, you can use it to do your PCF Component build/deploy
Port mapping to 8081 is setup, so you would be able to test and debug using Test Harness exactly like how you do it in your local machine
- pac command is only available after the Power Platform CLI extension is installed. So, please wait for the confirmation message before running pac inside bash.
- Reloading does not seem to work inside Dev Containers inside VSCode. But, it does work inside GitHub Codespaces