Skip to content

Instantly share code, notes, and snippets.

@shamilton-agencyq
Last active February 28, 2024 17:41
Show Gist options
  • Save shamilton-agencyq/ac8e441348b3087cf5efb83497053fb1 to your computer and use it in GitHub Desktop.
Save shamilton-agencyq/ac8e441348b3087cf5efb83497053fb1 to your computer and use it in GitHub Desktop.
Sitecore XM Cloud Dev Container
{
"name": "Dev Container",
"image": "mcr.microsoft.com/devcontainers/dotnet:1-6.0",
"workspaceFolder": "/workspaces/<<replace with repo name>>/src/sxastarter",
"postCreateCommand": "npm install",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "lts",
"nvmVersion": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"github.codespaces",
"redhat.vscode-yaml",
"redhat.vscode-xml",
"styled-components.vscode-styled-components",
"vscode-icons-team.vscode-icons",
"danielsousadev.styled-components-snippets",
"esbenp.prettier-vscode",
"graphql.vscode-graphql-syntax",
"github.copilot",
"github.copilot-chat",
"dbaeumer.vscode-eslint",
"GitHub.vscode-pull-request-github"
],
"settings": {
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.inlineSuggest.enabled": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"github.copilot.enable": {
"*": true,
"yaml": false,
"plaintext": true,
"markdown": true
},
"workbench.iconTheme": "vscode-icons"
}
}
},
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
"visibility": "public"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment