Skip to content

Commit

Permalink
build(mise): ensure vscode config exists after mise install task
Browse files Browse the repository at this point in the history
  • Loading branch information
chronicc committed Oct 3, 2024
1 parent 7e12f0f commit 845cce3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .mise/tasks/install
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/usr/bin/env bash
# mise description="Install project dependencies"
# mise depends=["pip:install", "ansible:install"]

if [ ! -f .vscode/settings.json ]
then
echo "No .vscode/settings.json found, copying from mise template."
mkdir -p .vscode
cp .mise/templates/settings.json .vscode/settings.json
fi
8 changes: 8 additions & 0 deletions .mise/templates/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.associations": {
"**/defaults/**/*.yml": "ansible",
"**/handlers/**/*.yml": "ansible",
"**/tasks/**/*.yml": "ansible",
"**/vars/**/*.yml": "ansible"
}
}

0 comments on commit 845cce3

Please sign in to comment.