-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from asdf to Dev Container (#202)
* Move from asdf to Dev Container * We don not need code tests on devcontainer changes * Better link for VS Code * Fix Docker support and disable post-install scripts in container * Update Prettier ignore
- Loading branch information
Showing
19 changed files
with
183 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Creates development machine inside docker | ||
# so every developer will have the same environment | ||
|
||
FROM node:22.1.0-alpine | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache zsh git eza tig ripgrep bat curl micro starship \ | ||
&& rm -rf /var/cache/apk/* | ||
RUN npm install -g [email protected] | ||
RUN sed -i 's|/node:/bin/sh|/node:/bin/zsh|' /etc/passwd | ||
|
||
USER node | ||
|
||
RUN pnpm config set store-dir /home/node/.local/share/pnpm/store \ | ||
&& pnpm config set ignore-scripts false | ||
|
||
RUN micro -plugin install editorconfig | ||
RUN mkdir -p /home/node/.config \ | ||
&& echo 'eval "$(starship init zsh)"' >> /home/node/.zshrc | ||
RUN printf 'format = "$directory$git_branch$line_break$character"' \ | ||
> /home/node/.config/starship.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
"forwardPorts": [5173, 5284, 6006], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"connor4312.nodejs-testing", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"stylelint.vscode-stylelint", | ||
"svelte.svelte-vscode", | ||
"webben.browserslist", | ||
"yoavbls.pretty-ts-errors", | ||
"streetsidesoftware.code-spell-checker", | ||
"editorconfig.editorconfig", | ||
"yzhang.markdown-all-in-one", | ||
"davidlday.languagetool-linter" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
"forwardPorts": [5173, 5284, 6006], | ||
"mounts": [ | ||
{ | ||
"source": "pnpm-store", | ||
"target": "/home/node/.local/share/pnpm/store", | ||
"type": "volume" | ||
}, | ||
{ | ||
"source": "shell-history", | ||
"target": "/home/node/.shell-history/", | ||
"type": "volume" | ||
} | ||
], | ||
"workspaceMount": "", | ||
"runArgs": [ | ||
"--userns=keep-id:uid=1000,gid=1000", | ||
"--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}:Z" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"connor4312.nodejs-testing", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"stylelint.vscode-stylelint", | ||
"svelte.svelte-vscode", | ||
"webben.browserslist", | ||
"yoavbls.pretty-ts-errors", | ||
"streetsidesoftware.code-spell-checker", | ||
"editorconfig.editorconfig", | ||
"yzhang.markdown-all-in-one", | ||
"davidlday.languagetool-linter" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
22.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
coverage/ | ||
dist/ | ||
web/storybook-static/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["ms-vscode-remote.remote-containers"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"node": "^22.1.0", | ||
"pnpm": "^9.0.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"test": "FORCE_COLOR=1 pnpm run -r --include-workspace-root /^test:/", | ||
"start": "FORCE_COLOR=1 pnpm run -r start", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters