Skip to content

Commit 8827917

Browse files
committed
Adds Dev Container configuration (CorentinTh#1393)
Adds necessary settings, extensions, and ports to access.
1 parent 08d977b commit 8827917

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.devcontainer/devcontainer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "IT-Tools Dev Container",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"Vue.volar",
8+
"dbaeumer.vscode-eslint",
9+
"Lokalise.i18n-ally",
10+
"eamodio.gitlens"
11+
],
12+
"settings": {
13+
"editor.formatOnSave": false,
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll.eslint": true
16+
},
17+
"i18n-ally.localesPaths": [
18+
"locales",
19+
"src/tools/*/locales"
20+
],
21+
"i18n-ally.keystyle": "nested"
22+
}
23+
}
24+
},
25+
"postCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
26+
"postStartCommand": "npm install -g pnpm && pnpm install",
27+
"forwardPorts": [5173],
28+
"portsAttributes": {
29+
"5173": {
30+
"label": "Vite App - IT-Tools",
31+
"onAutoForward": "notify"
32+
}
33+
}
34+
}

.devcontainer/welcome.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Welcome to the IT-Tools Dev Container! 💻
2+
3+
To get started, enter `pnpm dev` on the terminal to run the app locally.
4+
5+
Head over to the ./README.md file to know more.
6+
7+
Happy coding! :)

0 commit comments

Comments
 (0)