mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
112 lines
3.4 KiB
JSON
112 lines
3.4 KiB
JSON
{
|
|
"name": "scoreko-electron",
|
|
"version": "0.1.0",
|
|
"description": "Scoreko - Electron wrapper",
|
|
"author": {
|
|
"name": "Pandipipas",
|
|
"email": "pablocg182000@gmail.com"
|
|
},
|
|
"license": "MIT",
|
|
"private": true,
|
|
"main": "dist/main/main.js",
|
|
"scripts": {
|
|
"clean": "rimraf dist release lib",
|
|
"typecheck": "tsc --noEmit",
|
|
"build:bundle": "node scripts/build-scoreko-bundle.mjs",
|
|
"build:main": "tsc -p tsconfig.json",
|
|
"prepare:runtime": "node scripts/prepare-nodecg-runtime.mjs",
|
|
"build": "npm run clean && npm run build:bundle && npm run build:main && npm run prepare:runtime",
|
|
"start": "npm run build && electron .",
|
|
"dev": "concurrently -k \"npm:watch\" \"npm:dev:electron\"",
|
|
"watch": "tsc -p tsconfig.json --watch",
|
|
"dev:electron": "wait-on dist/main/main.js && electron .",
|
|
"pack": "npm run build && electron-builder --dir",
|
|
"rebuild:native": "node scripts/rebuild-nodecg-native.mjs",
|
|
"test": "rimraf dist && npm run build:main && node --test dist/tests/**/*.test.js",
|
|
"doctor": "node scripts/doctor.mjs",
|
|
"lint": "eslint . --ext .ts,.js,.mjs",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"format": "prettier --check .",
|
|
"format:write": "prettier --write .",
|
|
"dist:win": "npm run build && npm run rebuild:native && electron-builder --win",
|
|
"dist:linux": "npm run build && npm run rebuild:native && electron-builder --linux AppImage",
|
|
"dist:all": "npm run build && npm run rebuild:native && electron-builder --win --linux --mac",
|
|
"dist:mac": "npm run build && npm run rebuild:native && electron-builder --mac"
|
|
},
|
|
"build": {
|
|
"appId": "com.scoreko.desktop",
|
|
"productName": "Scoreko",
|
|
"artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
|
|
"directories": {
|
|
"output": "release",
|
|
"buildResources": "static"
|
|
},
|
|
"files": [
|
|
"dist/**",
|
|
"package.json"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "lib/nodecg",
|
|
"to": "lib/nodecg"
|
|
},
|
|
{
|
|
"from": "static",
|
|
"to": "static"
|
|
}
|
|
],
|
|
"mac": {
|
|
"target": [
|
|
"dmg"
|
|
],
|
|
"icon": "static/icons/icon.icns"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage"
|
|
],
|
|
"icon": "static/icons",
|
|
"category": "Utility"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis"
|
|
],
|
|
"icon": "static/icons/icon.ico",
|
|
"executableName": "scoreko",
|
|
"signAndEditExecutable": true
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"artifactName": "${productName}-setup-${version}.${ext}",
|
|
"installerIcon": "static/icons/icon.ico",
|
|
"uninstallerIcon": "static/icons/icon.ico",
|
|
"installerHeaderIcon": "static/icons/icon.ico",
|
|
"shortcutName": "Scoreko",
|
|
"useZip": false,
|
|
"deleteAppDataOnUninstall": true,
|
|
"showInstDetails": "show",
|
|
"showUninstDetails": "show"
|
|
},
|
|
"compression": "normal"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"devDependencies": {
|
|
"@electron/rebuild": "^3.7.1",
|
|
"@types/node": "^22.10.5",
|
|
"concurrently": "^9.1.2",
|
|
"electron": "39.5.1",
|
|
"electron-builder": "^25.1.8",
|
|
"rimraf": "^6.0.1",
|
|
"typescript": "^5.7.3",
|
|
"wait-on": "^8.0.1",
|
|
"eslint": "^9.19.0",
|
|
"@typescript-eslint/parser": "^8.22.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
"prettier": "^3.4.2"
|
|
}
|
|
}
|