From 85644c5bf530299866a54fee38d10eb2a8763f31 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Sun, 22 Dec 2024 09:41:29 +0900 Subject: [PATCH] update devcontainer file --- .devcontainer/Dockerfile | 32 ----------------- .devcontainer/devcontainer.json | 64 +++++++++------------------------ .github/dependabot.yml | 12 +++++++ 3 files changed, 29 insertions(+), 79 deletions(-) delete mode 100644 .devcontainer/Dockerfile create mode 100644 .github/dependabot.yml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 8414af95..00000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- - -# To fully customize the contents of this image, use the following Dockerfile instead: -ARG VARIANT -FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:${VARIANT} - -# ** [Optional] Uncomment this section to install additional packages. ** -# -# ENV DEBIAN_FRONTEND=noninteractive -# RUN apt-get update \ -# && apt-get -y install --no-install-recommends \ -# # -# # Clean up -# && apt-get autoremove -y \ -# && apt-get clean -y \ -# && rm -rf /var/lib/apt/lists/* -# ENV DEBIAN_FRONTEND=dialog - -# -# Locale -RUN apt-get install -y git procps locales \ - && sed -i '/^#.* ja_JP.UTF-8 /s/^#//' /etc/locale.gen \ - && locale-gen \ - && ln -fs /usr/share/zoneinfo/Asia/Tokyo /etc/localtime\ - && dpkg-reconfigure -f noninteractive tzdata -ENV LANG='ja_jp.utf8' - -# Pandoc -RUN apt update && apt-get install -y pandoc diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 080541c1..dc3f0066 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,56 +1,26 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node { - // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: - // https://github.com/microsoft/vscode-dev-containers/tree/v0.112.0/containers/typescript-node-12 - "name": "Vue.js & Node.js", - "build": { - "dockerfile": "Dockerfile", - "args": { - "VARIANT": "14" - } - }, - // Set *default* container specific settings.json values on container create. - "settings": { - "eslint.validate": ["javascript", "javascriptreact", "vue"], - "eslint.workingDirectories": ["./", "./.vitepress"], - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true - } - }, + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "formulahendry.auto-rename-tag", - "christian-kohler.path-intellisense", - "CoenraadS.bracket-pair-colorizer", - "streetsidesoftware.code-spell-checker", - "visualstudioexptteam.vscodeintellicode", - "alefragnani.bookmarks", - "sohamkamani.code-eol", - "ms-azuretools.vscode-docker", - "editorconfig.editorconfig", - "esbenp.prettier-vscode", - "dbaeumer.vscode-eslint", - "mhutchie.git-graph", - "eamodio.gitlens", - "oderwat.indent-rainbow", - "shd101wyy.markdown-preview-enhanced", - "ms-vscode-remote.vscode-remote-extensionpack", - "mosapride.zenkaku", - "octref.vetur", - "jcbuisson.vue", - "dariofuzinato.vue-peek", - "redhat.vscode-yaml" - ], + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. - "forwardPorts": [8080], + // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "npm install" + "postCreateCommand": "npm install", - // Use 'postStartCommand' to run commands after the container is started. - // "postStartCommand": "npm ci" + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] + } + } - // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. - // "remoteUser": "node" + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" } diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..f33a02cd --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot + +version: 2 +updates: + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly