forked from webdriverio/webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
59 lines (54 loc) · 1.5 KB
/
devcontainer.json
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
// For more details, see https://aka.ms/devcontainer.json.
{
"name": "WebdriverIO Development Environment",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
8000,
3000
],
"portsAttributes": {
"8000": {
"label": "Code Coverage Overview"
},
"3000": {
"label": "Preview of the Documentation Page"
}
},
"hostRequirements": {
"cpus": 8,
"memory": "8gb",
"storage": "32gb"
},
"postCreateCommand": "npm install && npm run setup",
"waitFor": "postCreateCommand",
"postAttachCommand": {
"WebdriverIO Development Environment": "npm run watch",
"Preview of the Documentation Page": "cd website && npm install && npm start -- --host 0.0.0.0",
"Code Coverage Overview": "npm run test:unit && cd coverage && http-server -p 8000"
},
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"editorconfig.editorconfig",
"eamodio.gitlens",
"stateful.runme"
],
"settings": {
"workbench.editorAssociations": {
"*.md": "runme"
}
}
}
}
}