2023-02-27 11:56:33 -09:00
|
|
|
// For more details, see https://aka.ms/devcontainer.json.
|
|
|
|
|
{
|
2023-06-07 04:42:45 -08:00
|
|
|
"name": "WebdriverIO Development Environment",
|
2023-02-27 11:56:33 -09:00
|
|
|
|
2023-06-07 04:42:45 -08:00
|
|
|
"build": {
|
|
|
|
|
"context": ".",
|
|
|
|
|
"dockerfile": "Dockerfile"
|
|
|
|
|
},
|
2023-02-27 11:56:33 -09:00
|
|
|
|
2023-06-07 04:42:45 -08:00
|
|
|
// 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": {}
|
|
|
|
|
},
|
2023-02-27 11:56:33 -09:00
|
|
|
|
2023-06-07 04:42:45 -08:00
|
|
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
2023-02-27 11:56:33 -09:00
|
|
|
|
2023-06-07 04:42:45 -08:00
|
|
|
// 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"
|
|
|
|
|
},
|
2023-06-12 13:56:11 -08:00
|
|
|
"postCreateCommand": "npm install && npm run setup",
|
2023-06-07 04:42:45 -08:00
|
|
|
"waitFor": "postCreateCommand",
|
|
|
|
|
"postAttachCommand": {
|
2024-09-09 13:05:23 -08:00
|
|
|
"WebdriverIO Development Environment": "npm run dev",
|
2023-06-07 04:42:45 -08:00
|
|
|
"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"
|
|
|
|
|
},
|
2023-02-27 11:56:33 -09:00
|
|
|
|
2023-06-07 04:42:45 -08:00
|
|
|
// Configure tool-specific properties.
|
|
|
|
|
"customizations": {
|
|
|
|
|
"vscode": {
|
|
|
|
|
"extensions": [
|
|
|
|
|
"editorconfig.editorconfig",
|
|
|
|
|
"eamodio.gitlens",
|
|
|
|
|
"stateful.runme"
|
|
|
|
|
],
|
|
|
|
|
"settings": {
|
|
|
|
|
"workbench.editorAssociations": {
|
|
|
|
|
"*.md": "runme"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-27 11:56:33 -09:00
|
|
|
}
|