Skip to content

Commit 65d1194

Browse files
authored
Merge pull request #64 from kanga333/update-to-node16
Update to node16
2 parents c2abc6d + 902dcb5 commit 65d1194

File tree

14 files changed

+9253
-12901
lines changed

14 files changed

+9253
-12901
lines changed

.devcontainer/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [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
2+
ARG VARIANT=16-bullseye
3+
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
4+
5+
# [Optional] Uncomment this section to install additional OS packages.
6+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
# && apt-get -y install --no-install-recommends <your-package-list-here>
8+
9+
# [Optional] Uncomment if you want to install an additional version of node using nvm
10+
# ARG EXTRA_NODE_VERSION=10
11+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
12+
13+
# [Optional] Uncomment if you want to install more global node packages
14+
# RUN su node -c "npm install -g <your-package-list -here>"

.devcontainer/base.Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [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
2+
ARG VARIANT=16-bullseye
3+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
4+
5+
# Install tslint, typescript. eslint is installed by javascript image
6+
ARG NODE_MODULES="tslint-to-eslint-config typescript"
7+
COPY library-scripts/meta.env /usr/local/etc/vscode-dev-containers
8+
RUN su node -c "umask 0002 && npm install -g ${NODE_MODULES}" \
9+
&& npm cache clean --force > /dev/null 2>&1
10+
11+
# [Optional] Uncomment this section to install additional OS packages.
12+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
13+
# && apt-get -y install --no-install-recommends <your-package-list-here>
14+
15+
# [Optional] Uncomment if you want to install an additional version of node using nvm
16+
# ARG EXTRA_NODE_VERSION=10
17+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8+
// Append -bullseye or -buster to pin to an OS version.
9+
// Use -bullseye variants on local on arm64/Apple Silicon.
10+
"args": {
11+
"VARIANT": "16-bullseye"
12+
}
13+
},
14+
15+
// Configure tool-specific properties.
16+
"customizations": {
17+
// Configure properties specific to VS Code.
18+
"vscode": {
19+
// Add the IDs of extensions you want installed when the container is created.
20+
"extensions": [
21+
"dbaeumer.vscode-eslint"
22+
]
23+
}
24+
},
25+
26+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
27+
// "forwardPorts": [],
28+
29+
// Use 'postCreateCommand' to run commands after the container is created.
30+
// "postCreateCommand": "yarn install",
31+
32+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
33+
"remoteUser": "node"
34+
}

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"project": "./tsconfig.json"
99
},
1010
"rules": {
11+
"i18n-text/no-en": "off",
1112
"eslint-comments/no-use": "off",
1213
"import/no-namespace": "off",
1314
"no-unused-vars": "off",
@@ -51,4 +52,4 @@
5152
"es6": true,
5253
"jest/globals": true
5354
}
54-
}
55+
}

.github/dependabot.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
on:
22
push:
3-
tags:
4-
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5-
6-
name: Create Release
3+
branches:
4+
- main
5+
paths:
6+
- "package.json"
77

8+
name: Create Release if version is bumped
89
jobs:
910
build:
1011
name: Create Release
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Checkout code
1415
uses: actions/checkout@v2
16+
- run: git fetch --prune --unshallow --tags
17+
- uses: kanga333/config-value-exporter@main
18+
id: version
19+
with:
20+
key: version
21+
file: package.json
22+
- id: tag_check
23+
run: |
24+
git rev-parse ${{steps.version.outputs.result}} 2> /dev/null \
25+
|| echo '::set-output name=exist::false'
1526
- name: Create Release
27+
if: steps.tag_check.outputs.exist == 'false'
1628
id: create_release
1729
uses: actions/create-release@v1
1830
env:
1931
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2032
with:
21-
tag_name: ${{ github.ref }}
22-
release_name: Release ${{ github.ref }}
33+
tag_name: ${{steps.version.outputs.result}}
34+
release_name: Release ${{steps.version.outputs.result}}
2335
draft: false
2436
prerelease: false

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ inputs:
2626
required: false
2727
description: If given JSON array string, this action appends to it.
2828
runs:
29-
using: 'node12'
29+
using: 'node16'
3030
main: 'dist/index.js'

0 commit comments

Comments
 (0)