Skip to content

Commit

Permalink
Updated dependencies and devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAppleFreak committed Nov 11, 2023
1 parent 174efbd commit c9da180
Show file tree
Hide file tree
Showing 6 changed files with 1,614 additions and 6,160 deletions.
12 changes: 12 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:20

# Install basic development tools
RUN apt update && apt install -y less man-db sudo

# Ensure default `node` user has access to `sudo`
ARG USERNAME=node
RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME

# Set `DEVCONTAINER` environment variable to help with orientation
ENV DEVCONTAINER=true
34 changes: 13 additions & 21 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
// 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
// See https://containers.dev/implementors/json_reference/ for configuration reference
{
"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:0-18"

// 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": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
"name": "PCMRBot.js",
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "node",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {}
},
"postCreateCommand": "bash -i -c 'sudo apt-get update && nvm install && npm install -g npm rimraf'"
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

(all dates use the ISO-8601 format, which is YYYY/MM/DD)

## 2.3.3 (2023/11/11)

* No changes have been made to the code in this release.
* Updated dependencies, which solves [Pull #29](https://github.com/TheAppleFreak/winston-slack-webhook-transport/pull/29) and [Pull #30](https://github.com/TheAppleFreak/winston-slack-webhook-transport/pull/30) while also closing [Issue #31](https://github.com/TheAppleFreak/winston-slack-webhook-transport/issues/31). Thanks @dvasilen!
* Updated `devcontainer.json` to ensure the development environment is using the latest version of Node and NPM available.

## 2.3.2 (2023/5/10)

* The `SlackHookOptions` type now extends `TransportStreamOptions`, properly this time. This change is courtesy of [Pull #28](https://github.com/TheAppleFreak/winston-slack-webhook-transport/pull/28). Thanks again @DominicRoyStang!
Expand Down
Loading

0 comments on commit c9da180

Please sign in to comment.