diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..934192d --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,4 @@ +ARG VARIANT="20-bullseye" +FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT} + +RUN apt-get update && apt-get install bash-completion gnupg2 -y diff --git a/.devcontainer/bashrc.sh b/.devcontainer/bashrc.sh new file mode 100644 index 0000000..e69de29 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2d00f46 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "GitHub Runners AWS", + "build": { "dockerfile": "Dockerfile" }, + "features": { + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers-contrib/features/prettier:1": {} + }, + "remoteEnv": { + "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}" + }, + "customizations": { + "vscode": { + "extensions": [ + "editorconfig.editorconfig", + "esbenp.prettier-vscode", + "github.vscode-pull-request-github", + "orta.vscode-jest", + "yzhang.markdown-all-in-one" + ] + } + }, + "postCreateCommand": "yarn install", + "waitFor": "postCreateCommand", + "onCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt", +} diff --git a/.devcontainer/updateContent.sh b/.devcontainer/updateContent.sh new file mode 100644 index 0000000..a08865a --- /dev/null +++ b/.devcontainer/updateContent.sh @@ -0,0 +1,2 @@ +yarn install --frozen-lockfile +printf "source \$WORKSPACE/.devcontainer/bashrc.sh\n" >> ~/.bashrc diff --git a/.devcontainer/welcome.txt b/.devcontainer/welcome.txt new file mode 100644 index 0000000..e29e7b1 --- /dev/null +++ b/.devcontainer/welcome.txt @@ -0,0 +1,7 @@ + ,-----. _,-._ + / \ / \_/ \ +| action | >-(_)-< Generate docs + \ / \_/ \_/ for your actions. + `-----' `-' + +Welcome to action-docs diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..3ec53e2 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,13 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + "editorconfig.editorconfig", + "esbenp.prettier-vscode", + "github.vscode-pull-request-github", + "ms-vscode-remote.remote-containers", + "orta.vscode-jest", + "yzhang.markdown-all-in-one" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..522f5f1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[md]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + } +}