Skip to content

Commit 62856a4

Browse files
authored
chore: update dependencies (#54)
Add basic vscode dev container support + update all dependencies
1 parent 2760cb0 commit 62856a4

6 files changed

Lines changed: 1677 additions & 2242 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/javascript-node/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
4+
ARG VARIANT="16-bullseye"
5+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
6+
7+
# [Optional] Uncomment this section to install additional OS packages.
8+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
# && apt-get -y install --no-install-recommends <your-package-list-here>
10+
11+
# [Optional] Uncomment if you want to install an additional version of node using nvm
12+
# ARG EXTRA_NODE_VERSION=10
13+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
14+
15+
# [Optional] Uncomment if you want to install more global node modules
16+
# RUN su node -c "npm install -g <your-package-list-here>"

.devcontainer/devcontainer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.202.3/containers/javascript-node
3+
{
4+
"name": "simple-plist",
5+
"runArgs": ["--init"],
6+
"build": {
7+
"dockerfile": "Dockerfile",
8+
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
9+
// Append -bullseye or -buster to pin to an OS version.
10+
// Use -bullseye variants on local arm64/Apple Silicon.
11+
"args": { "VARIANT": "16-bullseye" }
12+
},
13+
14+
// Set *default* container specific settings.json values on container create.
15+
"settings": {},
16+
17+
// Add the IDs of extensions you want installed when the container is created.
18+
"extensions": [
19+
"dbaeumer.vscode-eslint"
20+
],
21+
22+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
23+
// "forwardPorts": [],
24+
25+
// Use 'postCreateCommand' to run commands after the container is created.
26+
// "postCreateCommand": "yarn install",
27+
28+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
29+
"remoteUser": "node",
30+
"features": {
31+
"git": "latest"
32+
}
33+
}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

package.json

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,30 @@
2424
"jest": "jest --coverage ",
2525
"jest:verbose": "jest --coverage --verbose",
2626
"test": "run-s clean jest",
27-
"test:verbose": "run-s clean jest:verbose"
28-
},
29-
"husky": {
30-
"hooks": {
31-
"pre-commit": "npx run-s test",
32-
"pre-push": "npx run-s test"
33-
}
34-
},
35-
"lint-staged": {
36-
"*.js": [
37-
"eslint --fix",
38-
"prettier --write",
39-
"git add"
40-
]
27+
"test:verbose": "run-s clean jest:verbose",
28+
"prepare": "husky install"
4129
},
4230
"dependencies": {
43-
"bplist-creator": "0.0.8",
44-
"bplist-parser": "0.2.0",
45-
"plist": "^3.0.1"
31+
"bplist-creator": "0.1.0",
32+
"bplist-parser": "0.3.0",
33+
"plist": "^3.0.4"
4634
},
4735
"devDependencies": {
48-
"eslint": "^7.10.0",
49-
"eslint-config-airbnb": "^18.2.0",
50-
"eslint-config-prettier": "^6.12.0",
51-
"eslint-plugin-import": "^2.22.1",
52-
"eslint-plugin-jsx-a11y": "^6.3.1",
53-
"eslint-plugin-react": "^7.21.2",
54-
"husky": "^4.3.0",
55-
"jest": "^26.4.2",
56-
"lint-staged": "^10.4.0",
36+
"eslint": "^8.0.1",
37+
"eslint-config-airbnb": "^18.2.1",
38+
"eslint-config-prettier": "^8.3.0",
39+
"eslint-plugin-import": "^2.25.2",
40+
"eslint-plugin-jsx-a11y": "^6.4.1",
41+
"eslint-plugin-react": "^7.26.1",
42+
"husky": ">=6",
43+
"jest": "^27.2.5",
44+
"lint-staged": ">=10",
5745
"npm-run-all": "^4.1.5",
58-
"prettier": "^2.1.2",
46+
"prettier": "^2.4.1",
5947
"rimraf": "^3.0.2"
48+
},
49+
"lint-staged": {
50+
"*.js": "eslint --cache --fix",
51+
"*.{js,css,md}": "prettier --write"
6052
}
6153
}

0 commit comments

Comments
 (0)