加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 6.95 KB
一键复制 编辑 原始数据 按行查看 历史
Shatyuka 提交于 2021-11-22 03:55 . fix: update webpack cli parameters
{
"name": "Motrix",
"version": "1.6.11",
"description": "A full-featured download manager",
"homepage": "https://motrix.app",
"author": {
"name": "AGALWOOD",
"email": "agalwood.net@gmail.com"
},
"copyright": "Copyright© AGALWOOD",
"license": "MIT",
"main": "./dist/electron/main.js",
"repository": {
"type": "git",
"url": "git@github.com:agalwood/Motrix.git"
},
"scripts": {
"release": "npm run build --publish onTagOrDraft",
"build": "node .electron-vue/build.js && electron-builder",
"build:github": "node .electron-vue/build.js",
"build:dir": "node .electron-vue/build.js && electron-builder --dir",
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
"dev": "node .electron-vue/dev-runner.js",
"dev:renderer": "webpack serve --node-env development --hot --color --config .electron-vue/webpack.renderer.config.js --port 9080 --content-base app/dist",
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
"pack": "npm run pack:main && npm run pack:renderer",
"pack:main": "webpack --node-env production --progress --color --config .electron-vue/webpack.main.config.js",
"pack:renderer": "webpack --node-env production --progress --color --config .electron-vue/webpack.renderer.config.js",
"postinstall": "electron-builder install-app-deps && npm run lint:fix"
},
"build": {
"productName": "Motrix",
"appId": "net.agalwood.Motrix",
"afterPack": "./build/afterPackHook.js",
"afterSign": "electron-builder-notarize",
"fileAssociations": [
{
"ext": "torrent",
"mimeType": "application/x-bittorrent",
"name": "Torrent",
"role": "Viewer"
}
],
"asar": true,
"directories": {
"output": "release"
},
"files": [
"dist/electron/**/*"
],
"protocols": [
{
"name": "Motrix Protocol",
"schemes": [
"mo",
"motrix"
]
},
{
"name": "Magnet Protocol",
"schemes": [
"magnet"
]
},
{
"name": "Thunder Protocol",
"schemes": [
"thunder"
]
}
],
"dmg": {
"window": {
"width": 540,
"height": 380
},
"contents": [
{
"x": 410,
"y": 230,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 230,
"type": "file"
}
]
},
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
},
{
"target": "zip",
"arch": [
"x64",
"arm64"
]
}
],
"type": "distribution",
"darkModeSupport": true,
"hardenedRuntime": true,
"extraResources": {
"from": "./extra/darwin/",
"to": "./",
"filter": [
"**/*"
]
},
"category": "public.app-category.utilities"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
},
{
"target": "zip",
"arch": [
"x64",
"ia32"
]
},
{
"target": "portable",
"arch": [
"x64",
"ia32"
]
}
],
"extraResources": {
"from": "./extra/win32/",
"to": "./",
"filter": [
"**/*"
]
}
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
},
"linux": {
"category": "Network",
"target": [
"AppImage",
"deb",
"rpm",
"snap"
],
"extraResources": {
"from": "./extra/linux/",
"to": "./",
"filter": [
"**/*"
]
}
},
"snap": {
"publish": [
{
"provider": "github"
},
{
"provider": "snapStore",
"channel": "edge"
}
]
},
"publish": [
{
"provider": "generic",
"url": "https://dl.motrix.app/release/"
},
{
"provider": "github"
}
]
},
"dependencies": {
"@babel/runtime": "^7.14.6",
"@motrix/nat-api": "^0.3.2",
"@panter/vue-i18next": "^0.15.2",
"axios": "^0.21.1",
"bittorrent-peerid": "^1.3.3",
"blob-util": "^2.0.2",
"clipboard-polyfill": "^3.0.3",
"electron-debug": "^3.2.0",
"electron-is": "^3.0.0",
"electron-log": "^4.3.5",
"electron-store": "^8.0.0",
"electron-updater": "^4.3.9",
"element-ui": "^2.15.3",
"i18next": "^20.3.2",
"lodash": "^4.17.21",
"node-fetch": "^2.6.1",
"normalize.css": "^8.0.1",
"parse-torrent": "^9.1.3",
"randomatic": "^3.1.1",
"svg-innerhtml": "^1.1.0",
"vue": "^2.6.14",
"vue-electron": "^1.0.6",
"vue-router": "^3.5.2",
"vue-selectable": "^0.5.0",
"vuex": "^3.6.2",
"vuex-router-sync": "^5.0.0",
"ws": "^7.5.2"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/register": "^7.14.5",
"@electron/remote": "^1.2.0",
"@motrix/multispinner": "^0.2.2",
"@vue/eslint-config-standard": "^6.0.0",
"ajv": "^8.6.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"babel-plugin-component": "^1.1.1",
"cfonts": "^2.9.3",
"chalk": "^4.1.1",
"copy-webpack-plugin": "^9.0.1",
"cross-env": "^7.0.3",
"css-loader": "^5.2.6",
"css-minimizer-webpack-plugin": "^3.0.2",
"del": "^6.0.0",
"electron": "^11.4.9",
"electron-builder": "^22.11.7",
"electron-builder-notarize": "^1.2.0",
"electron-devtools-installer": "^3.2.0",
"electron-notarize": "^1.0.0",
"electron-osx-sign": "^0.5.0",
"eslint": "^7.30.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-vue": "^7.12.1",
"eslint-webpack-plugin": "^2.5.4",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.3.2",
"mini-css-extract-plugin": "2.0.0",
"node-loader": "^2.0.0",
"sass": "1.32.13",
"sass-loader": "^11.1.1",
"style-loader": "^3.0.0",
"terser-webpack-plugin": "^5.1.4",
"url-loader": "^4.1.1",
"vue-loader": "^15.9.7",
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.6.14",
"webpack": "^5.42.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2",
"webpack-hot-middleware": "^2.25.0",
"webpack-merge": "^5.8.0",
"worker-loader": "^3.0.8"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化