chore: update dev

This commit is contained in:
Bill Church 2024-08-21 11:01:54 +00:00
parent e06fabc2a7
commit dbcfc30cd0
No known key found for this signature in database
4 changed files with 40 additions and 48 deletions

View file

@ -1,45 +1,39 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{ {
"name": "Node.js & TypeScript", "name": "Debian Bullseye Node.js DevContainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/vscode/devcontainers/base:bullseye",
"image": "mcr.microsoft.com/devcontainers/base:jammy", "features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "6.9.1"
},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
// mount the ssh public identity file for the this project // mount the ssh public identity file for the this project
// I limit to just what I need and not the whole ~/.ssh folder // I limit to just what I need and not the whole ~/.ssh folder
"mounts": [ "mounts": [
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/personal_id_rsa.pub,target=/home/vscode/.hostssh/id_rsa.pub,readonly,type=bind,consistency=cached" "source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh/personal_id_rsa.pub,target=/home/vscode/.hostssh/id_rsa.pub,readonly,type=bind,consistency=cached"
], ],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/node-asdf": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [
"bierner.markdown-mermaid",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"GitHub.copilot-chat",
"GitHub.copilot",
"mohsen1.prettify-json",
"mechatroner.rainbow-csv", "mechatroner.rainbow-csv",
"ms-vscode-remote.remote-containers", "ms-vscode-remote.remote-containers",
"dbaeumer.vscode-eslint",
"GitHub.copilot",
"GitHub.copilot-chat",
"esbenp.prettier-vscode",
"rvest.vs-code-prettier-eslint",
"bierner.markdown-mermaid",
"stylelint.vscode-stylelint",
"vivaxy.vscode-conventional-commits",
"oderwat.indent-rainbow", "oderwat.indent-rainbow",
"mohsen1.prettify-json" "rvest.vs-code-prettier-eslint",
"stylelint.vscode-stylelint",
"vivaxy.vscode-conventional-commits"
] ]
},
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
} }
}, },
"postCreateCommand": "/bin/bash ./.devcontainer/scripts/tools.sh >> ~/post-create-tools.log",
// Use 'postCreateCommand' to run commands after the container is created. "remoteUser": "vscode"
"postCreateCommand": "/bin/bash ./.devcontainer/scripts/tools.sh >> ~/post-create-tools.log"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View file

@ -9,11 +9,9 @@ Host github.com
IdentityFile ~/.hostssh/id_rsa.pub IdentityFile ~/.hostssh/id_rsa.pub
EOF EOF
sudo chown -R vscode:vscode ~/.ssh sudo chown -R vscode:vscode ~/.ssh && \
sudo chmod 600 ~/.ssh/config && \
# Install Node.js 6.9.1 sudo chmod 600 ~/.ssh/known_hosts
asdf install nodejs 6.9.1
asdf global nodejs 6.9.1
git config --global --add safe.directory ${PWD} git config --global --add safe.directory ${PWD}
@ -40,4 +38,6 @@ echo "$user_email $signing_key" > ~/.ssh/allowed_signers
# Set the correct permissions for the allowed_signers file # Set the correct permissions for the allowed_signers file
chmod 644 ~/.ssh/allowed_signers chmod 644 ~/.ssh/allowed_signers
echo "allowed_signers file created successfully." echo "allowed_signers file created successfully."
npm install

View file

@ -1,5 +1,5 @@
extends: extends:
- airbnb - airbnb-base
- prettier - prettier
- plugin:node/recommended - plugin:node/recommended

View file

@ -48,8 +48,8 @@
}, },
"scripts": { "scripts": {
"start": "node index.js", "start": "node index.js",
"watch": "node_modules/.bin/nodemon index.js", "lint": "eslint src test",
"standard": "standard --verbose --fix | snazzy" "watch": "node_modules/.bin/nodemon index.js"
}, },
"standard": { "standard": {
"ignore": [ "ignore": [
@ -58,17 +58,15 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"airbnb": "0.0.2", "eslint": "^5.16.0",
"colors": "~1.3.2", "eslint-config-airbnb-base": "^13.2.0",
"eslint": "^9.9.0", "eslint-config-prettier": "^4.3.0",
"eslint-config-airbnb": "^19.0.4", "eslint-plugin-import": "^2.18.2",
"eslint-config-prettier": "^9.1.0", "eslint-plugin-node": "^8.0.0",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^2.7.0",
"eslint-plugin-prettier": "^5.2.1",
"nodemon": "^1.12.1", "nodemon": "^1.12.1",
"prettier": "^3.3.3", "prettier": "^1.19.1",
"prettier-eslint": "^16.3.0", "prettier-eslint": "^8.8.2",
"snazzy": "^8.0.0", "standard-version": "^4.4.0"
"standard": "^12.0.1"
} }
} }