Skip to content

Commit

Permalink
this gets the devcontainer working
Browse files Browse the repository at this point in the history
  • Loading branch information
MattReimer committed Jan 12, 2024
1 parent be85250 commit 75cb5dc
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 51 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"name": "Gatsby Docs Dev Container",
"waitFor": "onCreateCommand",
// On container creation, install dependencies.
"postCreateCommand": "yarn install",
"postCreateCommand": "cd docs; yarn install",
// Build and run the dev site on container start.
"postAttachCommand": "cd docs; yarn build; yarn serve",
"postAttachCommand": "cd docs; gatsby build; gatsby serve -H 0.0.0.0 -p 8000",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
"GitHub.copilot",
"GitHub.copilot-chat",
Expand Down
93 changes: 47 additions & 46 deletions Workspaces/QRiS_DEV.code-workspace
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
{
"folders": [
{
"path": "..",
}
],
"settings": {
"[python]": {
"editor.tabSize": 4,
"editor.formatOnSave": true,
},
"files.exclude": {
"**/*.egg-info": true,
"**/__pycache__": true
},
"files.watcherExclude": {
"**/*.egg-info/**": true,
"**/__pycache__": true
},
"search.exclude": {
"**/*.egg-info": true,
"**/__pycache__": true
},
// FROM: https://gist.github.com/NicolaiMogensen/acfd8723720c4761aefef3cdfc2aa55a
// I like changing colors for my projects. QGIS projects are usually green.
"workbench.colorCustomizations": {
"titleBar.activeForeground": "#ffffff",
"titleBar.activeBackground": "#b4b4b473",
// "editor.background": "#1c2c2a"
},
"terminal.integrated.env.osx": {
"PYTHONPATH": "${env:QGIS_PATH}/Contents/Resources/python:${env:QGIS_PATH}/Contents/Resources/python/site-packages:${env:QGIS_PATH}/Contents/Resources/python/site-packages/PyQt5:${workspaceFolder}/wheels",
"PATH": "${env:PATH}:${env:QGIS_PATH}/Contents/MacOS/bin"
},
// NOTE: For this to work you need an env file with "QGIS_PATH=/Applications/QGIS-LTR.app/Contents" or whatever your path is
"folders": [
{
"path": "..",
}
],
"settings": {
"[python]": {
"editor.tabSize": 4,
"editor.formatOnSave": true,
},
"files.exclude": {
"**/*.egg-info": true,
"**/__pycache__": true
},
"files.watcherExclude": {
"**/*.egg-info/**": true,
"**/__pycache__": true
},
"search.exclude": {
"**/*.egg-info": true,
"**/__pycache__": true
},
// FROM: https://gist.github.com/NicolaiMogensen/acfd8723720c4761aefef3cdfc2aa55a
// I like changing colors for my projects. QGIS projects are usually green.
"workbench.colorCustomizations": {
"titleBar.activeForeground": "#ffffff",
"titleBar.activeBackground": "#b4b4b473",
// "editor.background": "#1c2c2a"
},
"terminal.integrated.env.osx": {
"PYTHONPATH": "${env:QGIS_PATH}/Contents/Resources/python:${env:QGIS_PATH}/Contents/Resources/python/site-packages:${env:QGIS_PATH}/Contents/Resources/python/site-packages/PyQt5:${workspaceFolder}/wheels",
"PATH": "${env:PATH}:${env:QGIS_PATH}/Contents/MacOS/bin"
},
// NOTE: For this to work you need an env file with "QGIS_PATH=/Applications/QGIS-LTR.app/Contents" or whatever your path is
"python.pythonPath": "${env:QGIS_PATH}/Contents/MacOS/bin/python3",
"qtForPython.uic.args": [
"-o \"${workspaceFolder}${pathSeparator}src${pathSeparator}view${pathSeparator}ui${pathSeparator}${fileBasenameNoExtension}.py\""
],
"qtForPython.rcc.args": [
"-o \"${workspaceFolder}${pathSeparator}src${pathSeparator}${fileBasenameNoExtension}.py\""
],
"qtForPython.rcc.liveExecution": false
},
"launch": {
"configurations": [],
"compounds": []
}
"qtForPython.uic.args": [
"-o \"${workspaceFolder}${pathSeparator}src${pathSeparator}view${pathSeparator}ui${pathSeparator}${fileBasenameNoExtension}.py\""
],
"qtForPython.rcc.args": [
"-o \"${workspaceFolder}${pathSeparator}src${pathSeparator}${fileBasenameNoExtension}.py\""
],
"qtForPython.rcc.liveExecution": false,
"terminal.integrated.defaultProfile.linux": "zsh"
},
"launch": {
"configurations": [],
"compounds": []
}
}
14 changes: 14 additions & 0 deletions docs/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "yarn build",
"name": "Rebuild Gatsby",
"request": "launch",
"type": "node-terminal"
},
]
}
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@riverscapes/template-clean",
"name": "@riverscapes/qris-docs",
"description": "Riverscapes website powered by Gatsby and Markdown",
"version": "1.0.0",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3278,9 +3278,9 @@ __metadata:
languageName: node
linkType: hard

"@riverscapes/template-clean@workspace:.":
"@riverscapes/qris-docs@workspace:.":
version: 0.0.0-use.local
resolution: "@riverscapes/template-clean@workspace:."
resolution: "@riverscapes/qris-docs@workspace:."
dependencies:
"@riverscapes/gatsby-theme": "npm:^0.1.23"
gatsby: "npm:^5.10.0"
Expand Down

0 comments on commit 75cb5dc

Please sign in to comment.