chore: deps

This commit is contained in:
iCrawl 2020-12-20 12:16:48 +01:00
parent 299231472d
commit 15d000aea6
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2
11 changed files with 4382 additions and 3816 deletions

1
.eslintignore Normal file
View file

@ -0,0 +1 @@
*.d.ts

10
.eslintrc.json Normal file
View file

@ -0,0 +1,10 @@
{
"root": true,
"extends": "marine/prettier/node",
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"rules": {
"@typescript-eslint/naming-convention": 0
}
}

23
.gitignore vendored
View file

@ -1,21 +1,20 @@
# Packages # Packages
node_modules/ node_modules
**/node_modules
# Build artifacts
dist/
# Log files # Log files
logs/ logs
*.log *.log
npm-debug.log*
# Authentication # Runtime data
pids
# Test files *.pid
test/ *.seed
!test/**/*.ts
# Miscellaneous # Miscellaneous
.tmp/ .tmp/
.vscode/bookmarks.json
!.vscode/launch.json !.vscode/launch.json
!.vscode/tasks.json
.vscode-test/
dist/
typings/

4
.npmrc Normal file
View file

@ -0,0 +1,4 @@
audit=false
fund=false
node-version=false
legacy-peer-deps=true

View file

@ -1,9 +1,27 @@
.vscode # Packages
dist/**/*.map
node_modules node_modules
src **/node_modules
# Build artifacts
dist/**/*.map
# Log files
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Miscellaneous
.tmp/
.github/
.vscode/
src/
.gitattributes .gitattributes
.gitignore .gitignore
tsconfig.json tsconfig.json
webpack.config.js webpack.config.js
yarn.lock package-lock.json

8075
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
{ {
"name": "discord-vscode", "name": "discord-vscode",
"displayName": "Discord Presence", "displayName": "Discord Presence",
"version": "4.0.0", "version": "4.1.0",
"description": "Update your discord status with the newly added rich presence.", "description": "Update your discord status with the newly added rich presence.",
"private": true, "private": true,
"author": { "author": {
@ -186,33 +186,24 @@
"utf-8-validate": "^5.0.3", "utf-8-validate": "^5.0.3",
"vsls": "^1.0.3015" "vsls": "^1.0.3015"
}, },
"optionalDependencies": {
"register-scheme": "devsnek/node-register-scheme"
},
"devDependencies": { "devDependencies": {
"@types/node": "^14.14.14", "@types/node": "^14.14.14",
"@types/vscode": "^1.50.0", "@types/vscode": "^1.51.0",
"@typescript-eslint/eslint-plugin": "^3.10.1", "@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^3.10.1", "@typescript-eslint/parser": "^4.10.0",
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"eslint": "^7.16.0", "eslint": "^7.16.0",
"eslint-config-marine": "^7.2.0", "eslint-config-marine": "^7.2.0",
"eslint-config-prettier": "^7.1.0", "eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.0", "eslint-plugin-prettier": "^3.3.0",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"terser-webpack-plugin": "^4.2.3", "terser-webpack-plugin": "^5.0.3",
"ts-loader": "^8.0.12", "ts-loader": "^8.0.12",
"typescript": "^4.1.3", "typescript": "^4.1.3",
"webpack": "^4.44.2", "webpack": "^5.11.0",
"webpack-cli": "^3.3.12" "webpack-cli": "^4.2.0"
}, },
"engines": { "engines": {
"vscode": "^1.47.0" "vscode": "^1.51.0"
},
"eslintConfig": {
"extends": "marine/prettier/node",
"rules": {
"@typescript-eslint/naming-convention": 0
}
} }
} }

View file

@ -16,6 +16,7 @@
"brainfuck", "brainfuck",
"c", "c",
"cargo", "cargo",
"cfml",
"circleci", "circleci",
"clojure", "clojure",
"cmake", "cmake",
@ -63,6 +64,7 @@
"jar", "jar",
"java", "java",
"jest", "jest",
"jinja",
"js", "js",
"jsmap", "jsmap",
"json", "json",
@ -179,6 +181,8 @@
"/\\.bf?$/i": { "image": "brainfuck" }, "/\\.bf?$/i": { "image": "brainfuck" },
"/\\.c$/i": { "image": "c" }, "/\\.c$/i": { "image": "c" },
"/(cargo.toml|cargo.lock)/i": { "image": "cargo" }, "/(cargo.toml|cargo.lock)/i": { "image": "cargo" },
".cfc": { "image": "cfml" },
".cfm": { "image": "cfml" },
"circle.yml": { "image": "circleci" }, "circle.yml": { "image": "circleci" },
".clj": { "image": "clojure" }, ".clj": { "image": "clojure" },
".cl2": { "image": "clojure" }, ".cl2": { "image": "clojure" },
@ -280,6 +284,7 @@
".jar": { "image": "jar" }, ".jar": { "image": "jar" },
".java": { "image": "java" }, ".java": { "image": "java" },
"jest.config.js": { "image": "jest" }, "jest.config.js": { "image": "jest" },
".jinja": { "image": "jinja" },
".js": { "image": "js" }, ".js": { "image": "js" },
".es6": { "image": "js" }, ".es6": { "image": "js" },
".es": { "image": "js" }, ".es": { "image": "js" },

17
tsconfig.eslint.json Normal file
View file

@ -0,0 +1,17 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true,
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"**/*.test.ts",
"**/*.test.js",
"**/*.spec.ts",
"**/*.spec.js",
],
"exclude": []
}

View file

@ -9,10 +9,9 @@
"target": "es2017", "target": "es2017",
"module": "commonjs", "module": "commonjs",
"lib": [ "lib": [
"esnext" "ESNext"
], ],
"outDir": "dist", "outDir": "dist",
"sourceRoot": "./",
"sourceMap": true, "sourceMap": true,
"inlineSources": true, "inlineSources": true,
"incremental": true, "incremental": true,

View file

@ -1,5 +1,6 @@
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin');
const path = require('path');
module.exports = { module.exports = {
target: 'node', target: 'node',
@ -7,6 +8,7 @@ module.exports = {
output: { output: {
filename: 'extension.js', filename: 'extension.js',
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
path: path.resolve(process.cwd(), 'dist'),
}, },
devtool: 'source-map', devtool: 'source-map',
externals: { externals: {
@ -17,13 +19,14 @@ module.exports = {
}, },
plugins: [new CleanWebpackPlugin()], plugins: [new CleanWebpackPlugin()],
optimization: { optimization: {
minimize: true,
minimizer: [ minimizer: [
new TerserPlugin({ new TerserPlugin({
cache: false,
sourceMap: true,
extractComments: true, extractComments: true,
terserOptions: { terserOptions: {
ecma: 8, output: {
comments: false,
},
mangle: false, mangle: false,
keep_classnames: true, keep_classnames: true,
keep_fnames: true, keep_fnames: true,