forked from ohcnetwork/care_fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.json
More file actions
129 lines (129 loc) · 3.92 KB
/
devcontainer.json
File metadata and controls
129 lines (129 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "CARE Frontend Development",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": true,
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/git:1": {
"ppa": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
}
},
"customizations": {
"vscode": {
"settings": {
"typescript.suggest.autoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"tailwindCSS.includeLanguages": {
"typescript": "javascript",
"typescriptreact": "javascript"
},
"emmet.includeLanguages": {
"typescript": "html",
"typescriptreact": "html"
},
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": true
},
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"terminal.integrated.defaultProfile.linux": "bash",
"git.autofetch": true,
"git.enableSmartCommit": true,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false
},
"extensions": [
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"yoavbls.pretty-ts-errors",
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-next",
"ms-vscode.vscode-json",
"formulahendry.auto-rename-tag",
"christian-kohler.path-intellisense",
"usernamehw.errorlens",
"gruntfuggly.todo-tree",
"ms-playwright.playwright",
"github.vscode-pull-request-github",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker",
"zignd.html-css-class-completion",
"ms-vscode.vscode-html-language-features",
"ms-vscode.vscode-css-language-features",
"ms-vscode.vscode-emmet",
"wix.vscode-import-cost",
"christian-kohler.npm-intellisense"
]
}
},
"hostRequirements": {
"cpus": 4,
"memory": "16gb",
"storage": "32gb"
},
"containerEnv": {
"REACT_CARE_API_URL": "https://careapi.ohc.network",
"NODE_OPTIONS": "--max-old-space-size=4096",
"npm_config_cache": "/tmp/.npm"
},
"remoteEnv": {
"REACT_CARE_API_URL": "https://careapi.ohc.network"
},
"waitFor": "onCreateCommand",
"onCreateCommand": "set -euo pipefail; \
npm install --no-audit --no-fund; \
npm exec -y tsx -- --version >/dev/null 2>&1 || true; \
npm run postinstall; \
npm run setup",
"postCreateCommand": "echo 'CARE Frontend development environment is ready! Run npm run dev to start the development server.'",
"postAttachCommand": {
"server": "npm run dev"
},
"portsAttributes": {
"4000": {
"label": "CARE Frontend Application",
"onAutoForward": "openPreview"
},
"4001": {
"label": "CARE Frontend Application (Alt)",
"onAutoForward": "openPreview"
},
"9000": {
"label": "CARE Backend API (if running locally)",
"onAutoForward": "silent"
}
},
"forwardPorts": [
4000,
4001,
9000
],
"shutdownAction": "stopCompose"
}