Skip to content

Commit c37eec3

Browse files
committed
release 3.2.0
2 parents a7534a5 + de8e27d commit c37eec3

34 files changed

+2185
-3546
lines changed

.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"extends": [
33
"eslint-config-zoro/eslint",
4-
"eslint-config-zoro/typescript"
4+
"eslint-config-zoro/typescript",
5+
"eslint-config-zoro/node"
56
],
67
"env": {
8+
"node": true,
79
"jest": true
810
},
911
"parserOptions": {

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ node_modules
55
.DS_Store
66

77
# Project specific stuff
8-
.cache-loader
98
dist

.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 --no-install lint-staged

.huskyrc

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

.vscode/launch.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
25
"version": "0.2.0",
36
"configurations": [
47
{
58
"name": "Launch Extension",
69
"type": "extensionHost",
710
"request": "launch",
811
"runtimeExecutable": "${execPath}",
12+
"smartStep": true,
13+
"sourceMaps": true,
914
"args": [
1015
"--extensionDevelopmentPath=${workspaceFolder}"
1116
],
1217
"env": {
1318
"DEBUG_SYNCING_EXTENSION": "true"
1419
},
1520
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
21+
"${workspaceFolder}/out/**/*.js"
1722
],
18-
"smartStep": true,
19-
"sourceMaps": true,
2023
"osx": {
2124
"preLaunchTask": "tsc-watch"
2225
}

.vscode/settings.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
{
2-
"eslint.validate": [
3-
"javascript",
4-
"javascriptreact",
5-
{
6-
"language": "typescript",
7-
"autoFix": true
8-
},
9-
{
10-
"language": "typescriptreact",
11-
"autoFix": true
12-
}
13-
],
14-
"files.exclude": {
15-
"**/.cache-loader": true
16-
},
172
"search.exclude": {
183
"**/dist": true,
194
"**/yarn.lock": true
20-
}
5+
},
6+
"typescript.tsdk": "node_modules/typescript/lib"
217
}

.vscodeignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ yarn.lock
99
.eslintignore
1010
.eslintrc
1111
.gitignore
12-
.huskyrc
1312
.lintstagedrc
1413
tsconfig.eslint.json
1514
tsconfig.json

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelogs
22

3+
## 3.2.0 - May 11, 2022
4+
5+
- Changed: Upgrade dependencies and some minor fix.
6+
7+
38
## 3.1.0 - November 18, 2020
49

510
- Note: Since the official `Settings Sync` doesn't meet my requirement, I decided to resume the updates.

package.json

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "syncing",
33
"displayName": "%displayName%",
44
"description": "%description%",
5-
"version": "3.1.0",
5+
"version": "3.2.0",
66
"publisher": "nonoroazoro",
77
"author": {
88
"email": "[email protected]",
@@ -22,7 +22,7 @@
2222
"email": "[email protected]"
2323
},
2424
"engines": {
25-
"vscode": "^1.37.0"
25+
"vscode": "^1.67.0"
2626
},
2727
"categories": [
2828
"Other"
@@ -106,6 +106,7 @@
106106
]
107107
},
108108
"scripts": {
109+
"prepare": "husky install",
109110
"vscode:prepublish": "npm run build",
110111
"prebuild": "npm run clean && npm run cleanCov",
111112
"build": "cross-env NODE_ENV=production webpack --config ./scripts/webpack.config.prod.js",
@@ -118,48 +119,48 @@
118119
"test:cov": "npm run cleanCov && npm test -- --coverage"
119120
},
120121
"dependencies": {
121-
"@octokit/rest": "^18.0.9",
122-
"chokidar": "^3.4.3",
123-
"date-fns": "^2.16.1",
122+
"@octokit/rest": "^18.12.0",
123+
"chokidar": "^3.5.3",
124+
"date-fns": "^2.28.0",
124125
"extract-zip": "^2.0.1",
125-
"fs-extra": "9.0.1",
126-
"https-proxy-agent": "^5.0.0",
126+
"fs-extra": "10.1.0",
127+
"https-proxy-agent": "^5.0.1",
127128
"jsonc-parser": "^3.0.0",
128129
"jsondiffpatch": "^0.4.1",
129130
"junk": "^3.1.0",
130131
"lodash.debounce": "^4.0.8",
131132
"lodash.pick": "^4.4.0",
132-
"micromatch": "^4.0.2",
133-
"tmp-promise": "^3.0.2",
134-
"tslib": "^2.0.3"
133+
"micromatch": "^4.0.5",
134+
"tmp-promise": "^3.0.3",
135+
"tslib": "^2.4.0"
135136
},
136137
"devDependencies": {
137-
"@types/extract-zip": "^1.6.2",
138-
"@types/fs-extra": "^9.0.4",
139-
"@types/jest": "^26.0.15",
140-
"@types/lodash.debounce": "^4.0.6",
141-
"@types/lodash.pick": "^4.4.6",
142-
"@types/micromatch": "^4.0.1",
143-
"@types/node": "^14.14.8",
144-
"@types/vscode": "^1.37.0",
145-
"@typescript-eslint/eslint-plugin": "^4.8.1",
146-
"@typescript-eslint/parser": "^4.8.1",
147-
"cache-loader": "^4.1.0",
148-
"cross-env": "^7.0.2",
149-
"eslint": "^7.13.0",
150-
"eslint-config-zoro": "^4.0.1",
151-
"eslint-loader": "^3.0.3",
152-
"fork-ts-checker-webpack-plugin": "^6.0.3",
153-
"husky": "^4.3.0",
154-
"jest": "^26.6.3",
155-
"lint-staged": "^10.5.1",
138+
"@types/extract-zip": "^2.0.0",
139+
"@types/fs-extra": "^9.0.13",
140+
"@types/jest": "^27.5.0",
141+
"@types/lodash.debounce": "^4.0.7",
142+
"@types/lodash.pick": "^4.4.7",
143+
"@types/micromatch": "^4.0.2",
144+
"@types/node": "^17.0.32",
145+
"@types/vscode": "^1.67.0",
146+
"@typescript-eslint/eslint-plugin": "^5.23.0",
147+
"@typescript-eslint/parser": "^5.23.0",
148+
"cross-env": "^7.0.3",
149+
"eslint": "^8.15.0",
150+
"eslint-config-zoro": "^5.15.5",
151+
"eslint-plugin-node": "^11.1.0",
152+
"eslint-webpack-plugin": "^3.1.1",
153+
"fork-ts-checker-webpack-plugin": "^7.2.11",
154+
"husky": "^8.0.1",
155+
"jest": "^28.1.0",
156+
"lint-staged": "^12.4.1",
156157
"native-ext-loader": "^2.3.0",
157158
"rimraf": "^3.0.2",
158-
"ts-jest": "^26.4.4",
159-
"ts-loader": "^8.0.11",
160-
"typescript": "^4.0.5",
161-
"webpack": "^5.5.0",
162-
"webpack-cli": "^4.2.0",
163-
"webpackbar": "^4.0.0"
159+
"ts-jest": "^28.0.2",
160+
"ts-loader": "^9.3.0",
161+
"typescript": "^4.6.4",
162+
"webpack": "^5.72.1",
163+
"webpack-cli": "^4.9.2",
164+
"webpackbar": "^5.0.2"
164165
}
165166
}

scripts/webpack.config.prod.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
const fs = require("fs");
22
const path = require("path");
3+
const ESLintPlugin = require("eslint-webpack-plugin");
34
const TerserPlugin = require("terser-webpack-plugin");
45
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
56
const Webpackbar = require("webpackbar");
67

78
const ROOT_PATH = fs.realpathSync(process.cwd());
89
const BUILD_PATH = path.join(ROOT_PATH, "dist");
910

10-
// See https://github.com/Microsoft/vscode/blob/master/extensions/shared.webpack.config.js
11+
// See https://github.com/microsoft/vscode/blob/main/extensions/shared.webpack.config.js
1112
module.exports = {
1213
context: ROOT_PATH,
1314
mode: "production",
@@ -36,25 +37,17 @@ module.exports = {
3637
resolve: {
3738
extensions: [".ts", ".js"],
3839
alias: {
39-
"universal-user-agent$": "universal-user-agent/dist-node/index.js"
40+
// "universal-user-agent$": "universal-user-agent/dist-node/index.js"
4041
}
4142
},
4243
externals: {
4344
"vscode": "commonjs vscode"
4445
},
4546
module: {
4647
rules: [
47-
{
48-
enforce: "pre",
49-
test: /\.ts$/,
50-
loader: "eslint-loader",
51-
options: { cache: true },
52-
exclude: /node_modules/
53-
},
5448
{
5549
test: /\.ts$/,
5650
use: [
57-
"cache-loader",
5851
{
5952
loader: "ts-loader",
6053
options: { transpileOnly: true }
@@ -69,11 +62,8 @@ module.exports = {
6962
]
7063
},
7164
plugins: [
72-
new ForkTsCheckerWebpackPlugin({
73-
eslint: {
74-
files: "{scripts,src,tests}/**/*.{js,jsx,ts,tsx}"
75-
}
76-
}),
65+
new ESLintPlugin(),
66+
new ForkTsCheckerWebpackPlugin(),
7767
new Webpackbar()
7868
],
7969
stats: {

0 commit comments

Comments
 (0)