Skip to content

Commit

Permalink
Show welocme text message
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Jan 3, 2025
1 parent 0ca8f69 commit 87a9acb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"mounts": [
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/,target=/home/vscode/.ssh,readonly"
],
"postAttachCommand": "sh .devcontainer/startup.sh",
"postStartCommand": "sh .devcontainer/startup.sh",
"features": {
"ghcr.io/devcontainers-extra/features/typescript:2": {}
},
Expand All @@ -30,8 +30,8 @@
"amodio.tsl-problem-matcher"
]
}
},
"postCreateCommand": "sh .devcontainer/startup.sh",
}
// "postCreateCommand": "sh .devcontainer/startup.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
Expand Down
6 changes: 5 additions & 1 deletion .devcontainer/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ npm install --global npm@latest
npm install --global @vscode/vsce
npm install --global typescript
npm install @types/node
npm i --global esbuild
npm i --global esbuild

# Clear the screen and print welcome text:
clear
cat .devcontainer/welcome.txt # /usr/local/etc/vscode-dev-containers/first-run-notice.txt
10 changes: 10 additions & 0 deletions .devcontainer/welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
👋 Welcome to the developer environment for the Ampersand-Language-Support
extention! This environment should help you with the development of the
is repo.

🛠️ Your environment is fully setup with all the required software.
If you think something is missing, please ask @Hanjoosten.

👉 IMPORTANT: Before pushing to master, make sure the project has been compiled, so
there are no extra changes in `package.json` and/or `package-lock.json`

0 comments on commit 87a9acb

Please sign in to comment.