Dev setup Windows-first + LF-pin shell scripts
PowerShell-first onboarding (most devs are on VS Code/Windows), a Windows variant for the VS Code check task, and a .gitattributes rule keeping shell scripts LF so Windows checkouts do not corrupt them.
This commit is contained in:
4
.gitattributes
vendored
4
.gitattributes
vendored
@@ -1 +1,5 @@
|
|||||||
.env filter=git-crypt diff=git-crypt
|
.env filter=git-crypt diff=git-crypt
|
||||||
|
|
||||||
|
# Shell scripts must stay LF so Git Bash on Windows can run them
|
||||||
|
*.sh text eol=lf
|
||||||
|
scripts/check-naming-and-style.sh text eol=lf
|
||||||
|
|||||||
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
@@ -36,6 +36,9 @@
|
|||||||
"label": "Check: naming + tests + build",
|
"label": "Check: naming + tests + build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "bash scripts/check-naming-and-style.sh && venv/bin/python -m pytest tests/ -q && cd frontend && npx vitest run && npm run build",
|
"command": "bash scripts/check-naming-and-style.sh && venv/bin/python -m pytest tests/ -q && cd frontend && npx vitest run && npm run build",
|
||||||
|
"windows": {
|
||||||
|
"command": "bash scripts/check-naming-and-style.sh && venv\\Scripts\\python -m pytest tests/ -q && cd frontend && npx vitest run && npm run build"
|
||||||
|
},
|
||||||
"options": { "cwd": "${workspaceFolder}" },
|
"options": { "cwd": "${workspaceFolder}" },
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user