Skip to content

Commit 771e67f

Browse files
authored
Merge pull request #72 from aztfmod/AL-2405
Update packages
2 parents bab3e6e + f257aed commit 771e67f

File tree

6 files changed

+2809
-2139
lines changed

6 files changed

+2809
-2139
lines changed

.devcontainer/devcontainer.json

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
{
2-
"name": "CAF Documentation website",
3-
4-
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
5-
"dockerComposeFile": "docker-compose.yml",
6-
7-
// The 'service' property is the name of the service for the container that VS Code should
8-
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
9-
"service": "rover",
10-
11-
// The optional 'workspaceFolder' property is the path VS Code should open by default when
12-
// connected. This is typically a volume mount in .devcontainer/docker-compose.yml
13-
"workspaceFolder": "/tf/caf",
14-
15-
// Use 'settings' to set *default* container specific settings.json values on container create.
16-
// You can edit these settings after create using File > Preferences > Settings > Remote.
17-
"settings": {
18-
"files.eol": "\n",
19-
"editor.tabSize": 2,
20-
"terminal.integrated.scrollback": 64000,
2+
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04",
3+
"customizations": {
4+
"vscode": {
5+
"settings": {
6+
"[typescript]": {
7+
"editor.defaultFormatter": "esbenp.prettier-vscode",
8+
"editor.formatOnSave": true
9+
},
10+
"[json]": {
11+
"editor.defaultFormatter": "esbenp.prettier-vscode",
12+
"editor.formatOnSave": true
13+
},
14+
"[jsonc]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode",
16+
"editor.formatOnSave": true
17+
}
18+
},
19+
"extensions": [
20+
"dbaeumer.vscode-eslint",
21+
"orta.vscode-jest",
22+
"esbenp.prettier-vscode",
23+
"streetsidesoftware.code-spell-checker",
24+
"ms-vscode.wordcount",
25+
"GitHub.copilot"
26+
]
27+
}
2128
},
22-
23-
24-
// Uncomment the next line if you want start specific services in your Docker Compose config.
25-
// "runServices": [],
26-
27-
// Uncomment this like if you want to keep your containers running after VS Code shuts down.
28-
// "shutdownAction": "none",
29-
30-
// Uncomment the next line to run commands after the container is created.
31-
"postStartCommand": "cp -R /tmp/.ssh-localhost/* ~/.ssh && chown -R $(whoami):$(whoami) ~ && chmod 400 ~/.ssh/* && apt update && apt install -y vim && git config --global core.editor vim && cd /tf/caf/website && yarn && yarn build && yarn serve",
32-
// Add the IDs of extensions you want installed when the container is created in the array below.
33-
"extensions": [
34-
// "4ops.terraform",
35-
"mutantdino.resourcemonitor",
36-
"xyc.vscode-mdx-preview",
37-
"docsmsft.docs-authoring-pack"
38-
]
39-
}
29+
"forwardPorts": [3000],
30+
"containerUser": "vscode",
31+
"postCreateCommand": "yarn install",
32+
"waitFor": "postCreateCommand", // otherwise automated jest tests fail
33+
"features": {
34+
"node": {
35+
"version": "20"
36+
},
37+
"github-cli": "latest"
38+
}
39+
}
40+

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 17.x
15+
node-version: 20.x
1616
- name: Build website
1717
working-directory: website
1818
run: |

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 17.x
16+
node-version: 20.x
1717
cache: yarn
1818
cache-dependency-path: website/yarn.lock
1919
- name: Install dependencies

.vscode/tasks.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": ">Docusaurus build",
6+
"type": "shell",
7+
"command": "yarn build",
8+
"options": {
9+
"cwd": "${workspaceFolder}/website"
10+
},
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"presentation": {
16+
"reveal": "always"
17+
},
18+
"problemMatcher": []
19+
},
20+
{
21+
"label": ">Docusaurus serve",
22+
"type": "shell",
23+
"command": "yarn serve",
24+
"options": {
25+
"cwd": "${workspaceFolder}/website"
26+
},
27+
"group": {
28+
"kind": "test",
29+
"isDefault": true
30+
},
31+
"presentation": {
32+
"reveal": "always"
33+
},
34+
"problemMatcher": []
35+
},
36+
{
37+
"label": ">Docusaurus upgrade",
38+
"type": "shell",
39+
"command": "yarn upgrade",
40+
"options": {
41+
"cwd": "${workspaceFolder}/website"
42+
},
43+
"group": {
44+
"kind": "test",
45+
"isDefault": true
46+
},
47+
"presentation": {
48+
"reveal": "always"
49+
},
50+
"problemMatcher": []
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)