Skip to content

Commit a6c884b

Browse files
authored
Merge pull request #22 from Verus20/setup-codespace
setup devcontainer
2 parents 4a3db95 + f288331 commit a6c884b

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#-------------------------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4+
#-------------------------------------------------------------------------------------------------------------
5+
6+
# To fully customize the contents of this image, use the following Dockerfile instead:
7+
# https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/typescript-node-12/.devcontainer/Dockerfile
8+
FROM mcr.microsoft.com/devcontainers/typescript-node:24
9+
10+
# ** [Optional] Uncomment this section to install additional packages. **
11+
#
12+
# ENV DEBIAN_FRONTEND=noninteractive
13+
# RUN apt-get update \
14+
# && apt-get -y install --no-install-recommends <your-package-list-here> \
15+
# #
16+
# # Clean up
17+
# && apt-get autoremove -y \
18+
# && apt-get clean -y \
19+
# && rm -rf /var/lib/apt/lists/*
20+
# ENV DEBIAN_FRONTEND=dialog

.devcontainer/devcontainer.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/typescript-node-12
3+
{
4+
"name": "Node.js 24 & TypeScript",
5+
"dockerFile": "Dockerfile",
6+
7+
// Set *default* container specific settings.json values on container create.
8+
"settings": {
9+
"terminal.integrated.shell.linux": "/bin/bash"
10+
},
11+
12+
// Add the IDs of extensions you want installed when the container is created.
13+
"extensions": [
14+
"vivaxy.vscode-conventional-commits",
15+
"dbaeumer.vscode-eslint",
16+
"ms-vscode.vscode-typescript-tslint-plugin",
17+
"eamodio.gitlens",
18+
"esbenp.prettier-vscode"
19+
],
20+
21+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
22+
"forwardPorts": [3000, 3001],
23+
24+
// Use 'postCreateCommand' to run commands after the container is created.
25+
// "postCreateCommand": "yarn install",
26+
27+
"postCreateCommand": "npm install",
28+
29+
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
30+
// "remoteUser": "node"
31+
}

0 commit comments

Comments
 (0)