-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1d0c45
commit a13e88e
Showing
611 changed files
with
28,352 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ignores: ["@yarnpkg/sdks", "depcheck", "prettier"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster | ||
ARG VARIANT=16-bullseye | ||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | ||
|
||
USER root | ||
|
||
# Set zsh as the main shell | ||
RUN chsh -s /usr/bin/zsh | ||
|
||
# Preserve Shell history | ||
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.zsh_history" \ | ||
&& echo $SNIPPET >> "/root/.zshrc" | ||
|
||
# install additional OS packages. | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends \ | ||
shellcheck \ | ||
software-properties-common \ | ||
tldr \ | ||
tree \ | ||
zsh-autosuggestions \ | ||
&& mkdir -p /root/.local/share && tldr -u | ||
|
||
# Ensure the root folder referenced here is accessible to the user that will run the container | ||
RUN sudo chown root -R /root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/javascript-node-postgres | ||
// Update the VARIANT arg in docker-compose.yml to pick a Node.js version | ||
{ | ||
"name": "CLI", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "app", | ||
// workspaceFolder only is used for local devcontainers, not remote Github Codespaces, | ||
// so we use the default value from Github Codespaces here to keep both consistent | ||
"workspaceFolder": "/workspaces/cli", | ||
"runArgs": ["--network=host"], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"arcanis.vscode-zipfs", | ||
"slevesque.vscode-zipexplorer", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"bcanzanella.openmatchingfiles", | ||
"vscode-icons-team.vscode-icons", | ||
"wayou.vscode-todo-highlight", | ||
"streetsidesoftware.code-spell-checker", | ||
"ms-azuretools.vscode-docker", | ||
"hashicorp.terraform", | ||
"timonwong.shellcheck", | ||
"formulahendry.auto-rename-tag", | ||
"apollographql.vscode-apollo", | ||
"naumovs.color-highlight", | ||
"mikestead.dotenv", | ||
"grapecity.gc-excelviewer", | ||
"editorconfig.editorconfig", | ||
"techer.open-in-browser", | ||
"donjayamanne.githistory", | ||
"valentjn.vscode-ltex", | ||
"eamodio.gitlens", | ||
"fabiospampinato.vscode-terminals", | ||
"msjsdiag.debugger-for-chrome", | ||
"ms-vsliveshare.vsliveshare", | ||
"redhat.vscode-yaml", | ||
"reduckted.vscode-gitweblinks", | ||
"adpyke.vscode-sql-formatter", | ||
"yoavbls.pretty-ts-errors" | ||
], | ||
"settings": { | ||
"extensions.ignoreRecommendations": true, | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "/usr/bin/zsh" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-from-docker:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/sshd:1": { | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "latest" | ||
} | ||
}, | ||
"remoteEnv": { | ||
// This env will affect the VsCode version of `git` that runs in the sidebar to skip certain pre-commits | ||
"SKIP": "dockerfile-lint,check-executables-have-shebangs" | ||
}, | ||
"otherPortsAttributes": { | ||
"onAutoForward": "silent" | ||
}, | ||
"remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
container_name: CLI_Codespace | ||
build: | ||
context: .. | ||
dockerfile: .devcontainer/Dockerfile | ||
args: | ||
VARIANT: 16-bullseye | ||
|
||
volumes: | ||
- ..:/workspaces/main:cached | ||
- transcend-shell-history:/commandhistory | ||
- pre-commit-cache:/root/.cache/pre-commit | ||
|
||
# Overrides default command so things don't shut down after the process ends. | ||
command: /bin/bash -c "sleep infinity" | ||
|
||
network_mode: 'host' | ||
|
||
environment: | ||
# This is set to `true` locally when using devcontainers, so we add this here for compatibility | ||
REMOTE_CONTAINERS: 'true' | ||
|
||
volumes: | ||
pre-commit-cache: | ||
transcend-shell-history: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
indent_size = 3 | ||
|
||
[*.hbs] | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.gitignore | ||
.git/* | ||
.yarn/* | ||
**/docs/* | ||
**/package.json | ||
**/node_modules/* | ||
**/build/* | ||
**/dist/* | ||
**/builds/* | ||
**/coverage/* | ||
**/.yarn/* | ||
*.testjs | ||
*.testts | ||
LICENSE |
Oops, something went wrong.