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

Make bootstrapping an IDE easier #117

Merged
merged 5 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions .configurations/configuration.dsc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2

properties:
resources:
########################################################################
# Section: Install Git
########################################################################
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-git
directives:
description: Install Git # Although the user probably already has git installed, it's possible that they don't
allowPrerelease: true
settings:
id: Git.Git
source: winget
Ensure: Present
- resource: Microsoft.WinGet.DSC/WinGetPackage
dependsOn:
- install-git
id: install-github-cli
directives:
description: Install GitHub CLI
allowPrerelease: true
securityContext: elevated
settings:
id: GitHub.cli
source: winget
Ensure: Present
########################################################################
# Section: Configure Git Remotes
########################################################################
- resource: GitDSC/GitRemote
id: add-microsoft-upstream
directives:
description: Add microsoft/winget-dsc as the upstream remote
allowPrerelease: true
settings:
ProjectDirectory: '${WinGetConfigRoot}\..'
RemoteName: upstream
RemoteUrl: https://github.com/microsoft/winget-pkgs.git
########################################################################
# Section: Install VS-Code
########################################################################
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-vs-code
directives:
description: Install Microsoft Visual Studio Code
allowPrerelease: true
settings:
id: Microsoft.VisualStudioCode
source: winget
Ensure: Present
- resource: Microsoft.VSCode.Dsc/VSCodeExtension
id: install_vscode-yaml
dependsOn:
- install-vs-code
directives:
description: Install YAML extension for VSCode
allowPrerelease: true
settings:
Name: redhat.vscode-yaml
Exist: true
- resource: Microsoft.VSCode.Dsc/VSCodeExtension
id: install_editorconfig.editorconfig
dependsOn:
- install-vs-code
directives:
description: Install EditorConfig extension for VSCode
allowPrerelease: true
settings:
Name: EditorConfig.EditorConfig
Exist: true
- resource: Microsoft.VSCode.Dsc/VSCodeExtension
id: install_ms-vscode.powershell
dependsOn:
- install-vs-code
directives:
description: Install PowerShell extension for VSCode
allowPrerelease: true
settings:
Name: ms-vscode.powershell
Exist: true
########################################################################
# Section: Install PowerShell Modules
########################################################################
- resource: PowerShellModule/PSModuleResource
id: install-pester
directives:
description: Install Pester module
allowPrerelease: true
settings:
Module_Name: Pester
Ensure: Present
- resource: PowerShellModule/PSModuleResource
id: install-psscriptanalyzer
directives:
description: Install PSScriptAnalyzer module
allowPrerelease: true
settings:
Module_Name: PSScriptAnalyzer
Ensure: Present
configurationVersion: 0.2.0
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"redhat.vscode-yaml",
"EditorConfig.EditorConfig"
"EditorConfig.EditorConfig",
"ms-vscode.powershell"
]
}
Loading