-
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
Showing
22 changed files
with
41,235 additions
and
29,480 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,29 @@ | ||
{ | ||
"name": "Node.js & TypeScript", | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:20-bookworm", | ||
"onCreateCommand": ".devcontainer/setup.sh", | ||
"postCreateCommand": "npm install", | ||
"postStartCommand": ".devcontainer/startup.sh", | ||
"overrideCommand": true, | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/starship:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"security.workspace.trust.untrustedFiles": "open" | ||
}, | ||
"extensions": [ | ||
"bierner.markdown-preview-github-styles", | ||
"catppuccin.catppuccin-vsc", | ||
"catppuccin.catppuccin-vsc-icons", | ||
"dbaeumer.vscode-eslint", | ||
"DavidAnson.vscode-markdownlint", | ||
"esbenp.prettier-vscode", | ||
"GitHub.vscode-pull-request-github", | ||
"streetsidesoftware.code-spell-checker", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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,36 @@ | ||
#!/usr/bin/env sh | ||
if [ -d "/var/run/docker.sock" ]; then | ||
# Grant access to the docker socket | ||
sudo chmod 666 /var/run/docker.sock | ||
fi | ||
|
||
if ! [ -d ~/.ssh ]; then | ||
if [ -d /tmp/.ssh-localhost ]; then | ||
command mkdir -p -- ~/.ssh | ||
sudo cp -R /tmp/.ssh-localhost/* ~/.ssh | ||
sudo chown -R $(whoami):$(whoami) ~ || true ?>/dev/null | ||
sudo chmod 400 ~/.ssh/* | ||
fi | ||
fi | ||
|
||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends -y pre-commit fonts-firacode shellcheck | ||
sudo npm install -g npm prettier | ||
|
||
if [ -f ~/.gitconfig ]; then | ||
rm ~/.gitconfig | ||
fi | ||
|
||
if ! [ -d ~/.config ]; then | ||
command mkdir -p -- ~/.config | ||
fi | ||
/bin/cp -f .devcontainer/starship.toml ~/.config/starship.toml | ||
chown -R $USER_UID:$USER_GID ~/.config | ||
chmod -R 700 ~/.config | ||
chown $USER_UID:$USER_GID ~/.config/starship.toml | ||
if ! [ -f ~/.zshrc ]; then | ||
touch ~/.zshrc | ||
fi | ||
if ! grep -q 'eval "$(starship init zsh)"' ~/.zshrc; then | ||
echo 'eval "$(starship init zsh)"' >>~/.zshrc | ||
fi |
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,35 @@ | ||
command_timeout = 500 | ||
format = "$directory$git_branch$time$cmd_duration$character" | ||
|
||
[character] | ||
success_symbol = "[➜](bold green)" | ||
error_symbol = "[✖](bold red)" | ||
|
||
[cmd_duration] | ||
min_time = 500 | ||
format = "took [$duration](bold yellow)" | ||
|
||
[directory] | ||
read_only = " " | ||
truncation_length = 3 | ||
truncation_symbol = "~/" | ||
|
||
[git_branch] | ||
symbol = " " | ||
style = "bold #e8ec00 inverted" | ||
format = "on [$symbol$branch ]($style) " | ||
|
||
[git_commit] | ||
disabled = true | ||
|
||
[git_state] | ||
disabled = true | ||
|
||
[git_status] | ||
disabled = true | ||
|
||
[line_break] | ||
disabled = true | ||
|
||
[package] | ||
disabled = true |
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,24 @@ | ||
#!/usr/bin/env sh | ||
if [ "${CODESPACES}" = "true" ]; then | ||
# Remove the default credential helper | ||
sudo sed -i -E 's/helper =.*//' /etc/gitconfig | ||
|
||
# Add one that just uses secrets available in the Codespace | ||
git config --global credential.helper '!f() { sleep 1; echo "username=${GITHUB_USER}"; echo "password=${GH_TOKEN}"; }; f' | ||
fi | ||
|
||
if [ "$(git config --get safe.directory)" != "*" ]; then | ||
git config --global --add safe.directory "*" | ||
fi | ||
if [ "$(git config pull.rebase)" != "false" ]; then | ||
git config --global pull.rebase false | ||
fi | ||
if [ "$(git config user.name)" = "" ]; then | ||
echo "Warning: git user.name is not configured" | ||
fi | ||
if [ "$(git config user.email)" = "" ]; then | ||
echo "Warning: git user.email is not configured" | ||
fi | ||
|
||
pre-commit install | ||
pre-commit autoupdate |
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,108 @@ | ||
__test__/_temp | ||
_temp/ | ||
lib/ | ||
.vscode/ | ||
node_modules/ | ||
|
||
# https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
!.vscode/*.code-snippets | ||
|
||
# Local History for Visual Studio Code | ||
.history/ | ||
|
||
# Built Visual Studio Code Extensions | ||
*.vsix | ||
|
||
# https://github.com/github/gitignore/blob/main/Global/MicrosoftOffice.gitignore | ||
*.tmp | ||
|
||
# Word temporary | ||
~$*.doc* | ||
|
||
# Word Auto Backup File | ||
Backup of *.doc* | ||
|
||
# Excel temporary | ||
~$*.xls* | ||
|
||
# Excel Backup File | ||
*.xlk | ||
|
||
# PowerPoint temporary | ||
~$*.ppt* | ||
|
||
# Visio autosave temporary files | ||
*.~vsd* | ||
|
||
# https://github.com/github/gitignore/blob/main/Global/Windows.gitignore | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# https://github.com/github/gitignore/blob/main/Global/macOS.gitignore | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# https://github.com/github/gitignore/blob/main/Global/Linux.gitignore | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* |
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,12 @@ | ||
# See http://pre-commit.com for more information | ||
# See http://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-yaml | ||
- id: check-merge-conflict | ||
args: ["--assume-in-merge"] | ||
#- id: detect-private-key |
Oops, something went wrong.