247 lines
7.3 KiB
JSON
247 lines
7.3 KiB
JSON
{
|
|
"name": "beatconnect_client",
|
|
"productName": "Beatconnect Client",
|
|
"version": "0.4.0",
|
|
"description": "Beatconnect power for osu irc",
|
|
"author": "yadpe <petitot.py@gmail.com>",
|
|
"license": "GPL-3.0",
|
|
"main": "./src/electron/index.js",
|
|
"homepage": "./",
|
|
"scripts": {
|
|
"dev": "BEATCONNECT_CLIENT_MIRAGE=1 node scripts/start.js",
|
|
"start": "electron ./build/main.bundle.js",
|
|
"build": "node scripts/preBuild.js && node scripts/build.js && node scripts/postBuild.js",
|
|
"test": "node scripts/test.js",
|
|
"lint": "yarn lint:prettier && yarn lint:es",
|
|
"lint:fix": "yarn lint:fix:prettier && yarn lint:fix:es",
|
|
"lint:prettier": "prettier --check '**/*.{json,jsx,tsx,mjs,js,ts}'",
|
|
"lint:fix:prettier": "prettier --write '**/*.{json,jsx,tsx,mjs,js,ts}'",
|
|
"lint:es": "eslint '**/*.{js,jsx,mjs,ts,tsx}'",
|
|
"lint:fix:es": "eslint --fix '**/*.{js,jsx,mjs,ts,tsx}'",
|
|
"res": "rescript build",
|
|
"res:watch": "rescript build -w",
|
|
"res:clean": "rescript clean",
|
|
"dist": "yarn install && yarn build && electron-builder build --win --linux --mac --ia32 --x64",
|
|
"dist:win": "yarn install && yarn build && electron-builder build --win --x64",
|
|
"dist:linux": "yarn install && yarn build && electron-builder build --linux --x64",
|
|
"dist:mac": "yarn install && yarn build && electron-builder build --mac --x64",
|
|
"dist:mac-publish": "electron-builder build --mac --x64 -p always",
|
|
"dist:linux-publish": "electron-builder build --linux --x64 --ia32 -p always",
|
|
"dist:win-publish": "electron-builder build --win --ia32 --x64 -p always",
|
|
"dist:all-publish": "yarn install && yarn build && yarn dist:win-publish && dist:linux-publish && yarn dist:mac-publish",
|
|
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3200 electron .",
|
|
"electron:debug-analytics": "cross-env ELECTRON_START_URL=http://localhost:3200 DEBUG=universal-analytics electron .",
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/yadPe/beatconnect_client.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=12.18"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/yadPe/beatconnect_client/issues"
|
|
},
|
|
"build": {
|
|
"appId": "io.beatconnect.client",
|
|
"extraResources": [
|
|
"./extraResources/**"
|
|
],
|
|
"protocols": {
|
|
"name": "beatconnect-protocol",
|
|
"schemes": [
|
|
"beatconnect"
|
|
]
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "github",
|
|
"owner": "yadPe",
|
|
"repo": "beatconnect_client",
|
|
"releaseType": "release"
|
|
}
|
|
],
|
|
"files": [
|
|
"build/**/*",
|
|
"!**/node_modules/**",
|
|
"!package.json"
|
|
],
|
|
"directories": {
|
|
"buildResources": "assets"
|
|
},
|
|
"extraMetadata": {
|
|
"main": "./build/main.bundle.js",
|
|
"prune": true
|
|
},
|
|
"mac": {
|
|
"icon": "icon.icns",
|
|
"category": "public.app-category.music-games"
|
|
},
|
|
"dmg": {
|
|
"backgroundColor": "#2a2a2a",
|
|
"contents": [
|
|
{
|
|
"x": 110,
|
|
"y": 150
|
|
},
|
|
{
|
|
"x": 240,
|
|
"y": 150,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
]
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage",
|
|
"deb"
|
|
],
|
|
"category": "Music",
|
|
"icon": "icon.icns"
|
|
},
|
|
"win": {
|
|
"target": "nsis-web",
|
|
"icon": "favicon.ico"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"discord-rpc": "^3.2.0",
|
|
"electron-is-dev": "^1.1.0",
|
|
"electron-log": "^4.4.6",
|
|
"electron-updater": "^5.0.1",
|
|
"electron-window-state": "^5.0.3",
|
|
"fs-extra": "^9.1.0",
|
|
"irc": "git+https://github.com/yadPe/node-irc.git",
|
|
"long": "^4.0.0",
|
|
"node-machine-id": "^1.1.12",
|
|
"osu-db-parser": "git+https://github.com/yadPe/osu-db-parser.git#6cc783f3a9270f730cd5038d03ada4a78634cd65",
|
|
"osu-lazer-db-reader": "0.1.6",
|
|
"ps-node": "^0.1.6",
|
|
"react": "^18.1.0",
|
|
"react-dom": "^18.1.0",
|
|
"react-jss": "^10.6.0",
|
|
"react-redux": "^8.0.2",
|
|
"react-window": "^1.8.6",
|
|
"redux": "^4.2.0",
|
|
"uleb128": "^1.0.1",
|
|
"underscore": "^1.13.0",
|
|
"universal-analytics": "^0.4.23"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.13.13",
|
|
"@babel/preset-env": "^7.13.12",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
"@rescript/react": "0.10.3",
|
|
"@svgr/webpack": "5.5.0",
|
|
"acorn-dynamic-import": "^4.0.0",
|
|
"babel-eslint": "10.1.0",
|
|
"babel-jest": "^26.6.3",
|
|
"babel-loader": "8.2.2",
|
|
"babel-plugin-named-asset-import": "^0.3.7",
|
|
"babel-preset-react-app": "^10.0.0",
|
|
"bs-css": "^15.3.0",
|
|
"bs-css-emotion": "^4.3.0",
|
|
"camelcase": "^5.2.0",
|
|
"case-sensitive-paths-webpack-plugin": "2.3.0",
|
|
"conventional-changelog-cli": "^2.1.1",
|
|
"cross-env": "^7.0.3",
|
|
"dotenv": "6.2.0",
|
|
"dotenv-expand": "5.1.0",
|
|
"electron": "19.0.4",
|
|
"electron-builder": "23.0.3",
|
|
"electron-devtools-installer": "3.2.0",
|
|
"eslint": "^7.30.0",
|
|
"eslint-config-airbnb": "^18.2.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-config-react-app": "^6.0.0",
|
|
"eslint-plugin-import": "^2.22.0",
|
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
"eslint-plugin-react": "^7.22.0",
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
"eslint-webpack-plugin": "^2.5.4",
|
|
"file-loader": "3.0.1",
|
|
"html-webpack-plugin": "4.0.0-beta.5",
|
|
"identity-obj-proxy": "3.0.0",
|
|
"is-wsl": "^1.1.0",
|
|
"jest": "26.6.3",
|
|
"jest-environment-jsdom-fourteen": "1.0.1",
|
|
"jest-resolve": "26.4.0",
|
|
"jest-watch-typeahead": "0.5.0",
|
|
"miragejs": "^0.1.41",
|
|
"pnp-webpack-plugin": "1.2.1",
|
|
"prettier": "^1.18.2",
|
|
"react-dev-utils": "12.0.1",
|
|
"react-refresh": "^0.13.0",
|
|
"rescript": "9.1.4",
|
|
"resolve": "1.17.0",
|
|
"semver": "6.0.0",
|
|
"string-replace-loader": "^2.3.0",
|
|
"terser-webpack-plugin": "1.2.3",
|
|
"ts-pnp": "1.1.2",
|
|
"typescript": "^3.5.3",
|
|
"url-loader": "1.1.2",
|
|
"webpack": "^4.46.0",
|
|
"webpack-dev-server": "4.10.0",
|
|
"webpack-node-externals": "^3.0.0"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
"last 2 Electron version"
|
|
],
|
|
"development": [
|
|
"last 1 Electron version"
|
|
]
|
|
},
|
|
"jest": {
|
|
"collectCoverageFrom": [
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"!src/**/*.d.ts"
|
|
],
|
|
"setupFiles": [
|
|
"react-app-polyfill/jsdom"
|
|
],
|
|
"setupFilesAfterEnv": [],
|
|
"testMatch": [
|
|
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
],
|
|
"testEnvironment": "jest-environment-jsdom-fourteen",
|
|
"transform": {
|
|
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
|
|
"^.+\\.module\\.(css|sass|scss)$"
|
|
],
|
|
"modulePaths": [],
|
|
"moduleNameMapper": {
|
|
"^react-native$": "react-native-web",
|
|
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"web.js",
|
|
"js",
|
|
"web.ts",
|
|
"ts",
|
|
"web.tsx",
|
|
"tsx",
|
|
"json",
|
|
"web.jsx",
|
|
"jsx",
|
|
"node"
|
|
],
|
|
"watchPlugins": [
|
|
"jest-watch-typeahead/filename",
|
|
"jest-watch-typeahead/testname"
|
|
]
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"react-app"
|
|
]
|
|
}
|
|
} |