Skip to content

Commit 70fa577

Browse files
committed
build: updates the devcontainer
Now uses the open devcontainer standard
1 parent d49eddd commit 70fa577

File tree

5 files changed

+280
-1141
lines changed

5 files changed

+280
-1141
lines changed

.devcontainer/Dockerfile

-29
This file was deleted.

.devcontainer/devcontainer.json

+48-34
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,52 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
13
{
2-
"name": "Developmens",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
"VARIANT": "14"
7-
}
8-
},
9-
"settings": {
10-
"terminal.integrated.shell.linux": "/bin/bash",
11-
// Setup formatting to save with prettier
12-
"editor.formatOnSave": true,
13-
"editor.defaultFormatter": "esbenp.prettier-vscode",
14-
// Look throughout the project to auto set up eslint
15-
"eslint.workingDirectories": [
16-
{
17-
"mode": "auto"
18-
}
19-
],
20-
// Our eslint can be very heavy, so we perform it on save not on type
21-
"eslint.run": "onSave",
22-
// Ignore uncommon words
23-
"cSpell.userWords": ["commitd"],
24-
// Prefer relative imports
25-
"typescript.preferences.importModuleSpecifier": "relative"
4+
"name": "Node.js & TypeScript",
5+
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
6+
"features": {
7+
"ghcr.io/devcontainers/features/git:1": {},
8+
"ghcr.io/devcontainers/features/github-cli:1": {},
9+
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
10+
"ghcr.io/eitsupi/devcontainer-features/jq-likes:1": {}
2611
},
27-
"extensions": [
28-
"dbaeumer.vscode-eslint",
29-
"esbenp.prettier-vscode",
30-
"github.vscode-pull-request-github",
31-
"ms-vsliveshare.vsliveshare",
32-
"eamodio.gitlens",
33-
"streetsidesoftware.code-spell-checker",
34-
"ryanluker.vscode-coverage-gutters"
35-
],
12+
3613
"postCreateCommand": "yarn install",
37-
"remoteUser": "node"
14+
15+
"customizations": {
16+
"vscode": {
17+
"settings": {
18+
"terminal.integrated.profiles.linux": {
19+
"zsh": {
20+
"path": "zsh",
21+
"args": ["-l"]
22+
}
23+
},
24+
"terminal.integrated.defaultProfile.linux": "zsh",
25+
// Setup formatting to save with prettier
26+
"editor.formatOnSave": true,
27+
"editor.defaultFormatter": "esbenp.prettier-vscode",
28+
// Look throughout the project to auto set up eslint
29+
"eslint.workingDirectories": [
30+
{
31+
"mode": "auto"
32+
}
33+
],
34+
// Our eslint can be very heavy, so we perform it on save not on type
35+
"eslint.run": "onSave",
36+
// Ignore uncommon words
37+
"cSpell.userWords": ["commitd"],
38+
// Prefer relative imports
39+
"typescript.preferences.importModuleSpecifier": "relative"
40+
},
41+
"extensions": [
42+
"dbaeumer.vscode-eslint",
43+
"esbenp.prettier-vscode",
44+
"github.vscode-pull-request-github",
45+
"ms-vsliveshare.vsliveshare",
46+
"eamodio.gitlens",
47+
"streetsidesoftware.code-spell-checker",
48+
"ryanluker.vscode-coverage-gutters"
49+
]
50+
}
51+
}
3852
}

.husky/pre-push

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
yarn test
55
yarn lint
66
yarn build
7-
yarn size
7+
8+
# Removed for now as command fails
9+
#yarn size

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"@committed/components": "^7.0.2",
9999
"@fontsource/dosis": "^4.5.7",
100100
"@fontsource/inter": "^4.5.7",
101-
"@size-limit/preset-small-lib": "^4.6.2",
101+
"@size-limit/preset-small-lib": "^8.1.1",
102102
"@storybook/addon-essentials": "^6.4.22",
103103
"@storybook/react": "^6.4.22",
104104
"@storybook/storybook-deployer": "^2.8.11",
@@ -131,7 +131,7 @@
131131
"react-is": "^17.0.1",
132132
"react-test-renderer": "^17.0.1",
133133
"shx": "^0.3.2",
134-
"size-limit": "^4.6.2",
134+
"size-limit": "^8.1.1",
135135
"storybook-dark-mode": "^1.0.9",
136136
"swr": "^0.3.8",
137137
"tsdx": "^0.14.1",

0 commit comments

Comments
 (0)