Browse Source

Remove unused dependencies (#2278)

* Remove the bulma-pro and videojs-abloop dependencies

* Remove typescript

* Remove the jest development dependency
pull/2282/head
absidue 2 months ago
committed by GitHub
parent
commit
331f65ec26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .babelrc
  2. 2
      _scripts/webpack.main.config.js
  3. 2
      _scripts/webpack.renderer.config.js
  4. 4
      _scripts/webpack.workers.config.js
  5. 18
      package.json
  6. 0
      src/utilities/workerSample.js
  7. 21
      tsconfig.json
  8. 1534
      yarn.lock

3
.babelrc

@ -8,8 +8,7 @@
"node": 16
}
}
],
"@babel/typescript"
]
],
"plugins": [
"@babel/proposal-class-properties"

2
_scripts/webpack.main.config.js

@ -49,7 +49,7 @@ const config = {
path: path.join(__dirname, '../dist'),
},
resolve: {
extensions: ['.ts', '.js', '.json'],
extensions: ['.js', '.json'],
alias: {
'@': path.join(__dirname, '../src/'),
src: path.join(__dirname, '../src/'),

2
_scripts/webpack.renderer.config.js

@ -138,7 +138,7 @@ const config = {
images: path.join(__dirname, '../src/renderer/assets/img/'),
static: path.join(__dirname, '../static/'),
},
extensions: ['.ts', '.js', '.vue', '.json'],
extensions: ['.js', '.vue', '.json'],
},
target: 'electron-renderer',
}

4
_scripts/webpack.workers.config.js

@ -15,7 +15,7 @@ const config = {
mode: process.env.NODE_ENV,
devtool: isDevMode ? 'eval-cheap-module-source-map' : false,
entry: {
workerSample: path.join(__dirname, '../src/utilities/workerSample.ts'),
workerSample: path.join(__dirname, '../src/utilities/workerSample.js'),
},
output: {
libraryTarget: 'commonjs2',
@ -52,7 +52,7 @@ const config = {
'@': path.join(__dirname, '../src/'),
src: path.join(__dirname, '../src/'),
},
extensions: ['.ts', '.js', '.json'],
extensions: ['.js', '.json'],
},
target: 'node',
}

18
package.json

@ -30,23 +30,18 @@
"debug-runner": "node _scripts/dev-runner.js --remote-debug",
"dev": "run-s rebuild:electron dev-runner",
"dev-runner": "node _scripts/dev-runner.js",
"jest": "jest",
"jest:coverage": "jest --collect-coverage",
"jest:watch": "jest --watch",
"lint-fix": "eslint --fix --ext .js,.ts,.vue ./",
"lint": "eslint --ext .js,.ts,.vue ./",
"lint-fix": "eslint --fix --ext .js,.vue ./",
"lint": "eslint --ext .js,.vue ./",
"pack": "run-p pack:main pack:renderer pack:workers",
"pack:main": "webpack --mode=production --node-env=production --config _scripts/webpack.main.config.js",
"pack:renderer": "webpack --mode=production --node-env=production --config _scripts/webpack.renderer.config.js",
"pack:web": "webpack --mode=production --node-env=production --config _scripts/webpack.web.config.js",
"pack:workers": "webpack --mode=production --node-env=production --config _scripts/webpack.workers.config.js",
"postinstall": "npm run rebuild:electron",
"prettier": "prettier --write \"{src,_scripts}/**/*.{js,ts,vue}\"",
"prettier": "prettier --write \"{src,_scripts}/**/*.{js,vue}\"",
"rebuild:electron": "electron-builder install-app-deps",
"rebuild:node": "npm rebuild",
"release": "run-s test build",
"test": "run-s rebuild:node pack:workers jest",
"test:watch": "run-s rebuild:node pack:workers jest:watch",
"ci": "yarn install --frozen-lockfile"
},
"dependencies": {
@ -58,7 +53,6 @@
"@freetube/yt-comment-scraper": "^6.1.0",
"@silvermine/videojs-quality-selector": "^1.2.5",
"autolinker": "^3.15.0",
"bulma-pro": "^0.2.0",
"electron-context-menu": "^3.1.2",
"http-proxy-agent": "^4.0.1",
"https-proxy-agent": "^5.0.0",
@ -74,7 +68,6 @@
"rss-parser": "^3.12.0",
"socks-proxy-agent": "^6.0.0",
"video.js": "7.18.1",
"videojs-abloop": "^1.2.0",
"videojs-contrib-quality-levels": "^2.1.0",
"videojs-http-source-selector": "^1.1.6",
"videojs-overlay": "^2.1.4",
@ -98,9 +91,6 @@
"@babel/core": "^7.17.10",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/preset-env": "^7.17.10",
"@babel/preset-typescript": "^7.16.7",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.5",
"copy-webpack-plugin": "^9.0.1",
@ -121,7 +111,6 @@
"fast-glob": "^3.2.7",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.3.2",
"jest": "^27.1.0",
"mini-css-extract-plugin": "^2.2.2",
"node-abi": "^2.30.1",
"node-loader": "^2.0.0",
@ -132,7 +121,6 @@
"sass-loader": "^12.1.0",
"style-loader": "^3.2.1",
"tree-kill": "1.2.2",
"typescript": "^4.4.2",
"url-loader": "^4.1.1",
"vue-devtools": "^5.1.4",
"vue-eslint-parser": "^7.10.0",

0
src/utilities/workerSample.ts → src/utilities/workerSample.js

21
tsconfig.json

@ -1,21 +0,0 @@
{
"compilerOptions": {
// Target latest version of ECMAScript.
"target": "esnext",
// Search under node_modules for non-relative imports.
"moduleResolution": "node",
// Process & infer types from .js files.
"allowJs": true,
// Don't emit; allow Babel to transform files.
"noEmit": true,
// Enable strictest settings like strictNullChecks & noImplicitAny.
"strict": true,
// Disallow features that require cross-file information for emit.
"isolatedModules": true,
// Import non-ES modules as default imports.
"esModuleInterop": true,
// enable json modules import
"resolveJsonModule": true
},
"include": ["src/utilities"]
}

1534
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save