Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(devcontainer): Adds Dev Container configuration (#1393) #1426

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "IT-Tools Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node",
"customizations": {
"vscode": {
"extensions": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"Lokalise.i18n-ally",
"eamodio.gitlens"
],
"settings": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"i18n-ally.localesPaths": [
"locales",
"src/tools/*/locales"
],
"i18n-ally.keystyle": "nested"
}
}
},
"postCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
"postStartCommand": "npm install -g pnpm && pnpm install",
"forwardPorts": [5173],
"portsAttributes": {
"5173": {
"label": "Vite App - IT-Tools",
"onAutoForward": "notify"
}
}
}
7 changes: 7 additions & 0 deletions .devcontainer/welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Welcome to the IT-Tools Dev Container! 💻

To get started, enter `pnpm dev` on the terminal to run the app locally.

Head over to the ./README.md file to know more.

Happy coding! :)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<img src="./.github/logo-dark.png" alt="logo">
</picture>

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/CorentinTh/it-tools)

Useful tools for developer and people working in IT. [Have a look !](https://it-tools.tech).

## Sponsors
Expand Down
Loading