dsi-icl/optimise

View on GitHub
packages/optimise-electron/package.json

Summary

Maintainability
Test Coverage
{
    "name": "optimise-electron",
    "version": "3.1.4",
    "description": "Optimise:MS Desktop Application",
    "keywords": [
        "research",
        "clinical",
        "ms"
    ],
    "repository": "github:dsi-icl/optimise",
    "license": "MIT",
    "author": {
        "name": "Florian Guitton",
        "email": "f.guitton@imperial.ac.uk"
    },
    "main": "index.js",
    "scripts": {
        "prebuild": "cd ../optimise-ui && cross-env PUBLIC_URL=./ yarn build",
        "build": "rimraf dist && webpack --config config/webpack.prod.js",
        "prebuild-dev": "cd ../optimise-ui && cross-env NODE_ENV=development PUBLIC_URL=./ yarn build",
        "build-dev": "rimraf dist && webpack --config config/webpack.dev.js",
        "build-dev-noui": "rimraf dist && webpack --config config/webpack.dev.js",
        "build-noui": "rimraf dist && webpack --config config/webpack.prod.js",
        "postinstall": "electron-builder install-app-deps",
        "lint": "eslint .",
        "package": "electron-builder -p never",
        "package-to-github": "electron-builder -p onTagOrDraft",
        "start": "electron .",
        "test-autoupdate": "cross-env NODE_ENV=test node ./autoupdate.test.js"
    },
    "dependencies": {
        "electron-log": "5.2.0",
        "electron-unhandled": "4.0.1",
        "electron-updater": "6.3.9",
        "express": "4.21.1",
        "sqlite3": "5.1.6"
    },
    "devDependencies": {
        "@babel/core": "7.22.20",
        "babel-loader": "9.1.3",
        "copy-webpack-plugin": "11.0.0",
        "electron": "32.1.2",
        "electron-builder": "25.1.8",
        "electron-reload": "1.5.0",
        "html-webpack-plugin": "5.6.3",
        "webpack": "5.95.0",
        "webpack-cli": "5.1.4",
        "webpack-merge": "5.10.0"
    },
    "build": {
        "appId": "org.optimise-ms.local.app",
        "productName": "Optimise MS Desktop",
        "detectUpdateChannel": true,
        "copyright": "Copyright (c) 2024 Data Science Institute",
        "directories": {
            "output": "build"
        },
        "files": [
            "!**/.env*",
            "!**/.vscode",
            "!**/build",
            "!**/config"
        ],
        "mac": {
            "target": [
                "dmg",
                "pkg",
                "zip"
            ],
            "category": "public.app-category.medical",
            "icon": "resources/icons/mac/icon.png",
            "type": "distribution"
        },
        "dmg": {
            "background": "resources/background/background.png",
            "iconSize": 160,
            "iconTextSize": 12,
            "window": {
                "width": 660,
                "height": 400
            },
            "contents": [
                {
                    "x": 180,
                    "y": 170,
                    "type": "file"
                },
                {
                    "x": 480,
                    "y": 170,
                    "type": "link",
                    "path": "/Applications"
                }
            ]
        },
        "win": {
            "publish": [
                "github"
            ],
            "target": [
                "nsis",
                "portable",
                "zip"
            ],
            "icon": "resources/icons/win/app.ico"
        },
        "nsis": {
            "oneClick": false,
            "allowElevation": true,
            "license": "../../LICENSE",
            "installerIcon": "resources/icons/win/app.ico"
        },
        "linux": {
            "target": [
                "AppImage",
                "deb",
                "rpm",
                "snap"
            ],
            "icon": "resources/icon",
            "category": "Utility"
        },
        "snap": {
            "grade": "stable",
            "summary": "Multiple sclerosis patient data collection software"
        },
        "publish": {
            "provider": "github",
            "owner": "dsi-icl",
            "releaseType": "release",
            "publishAutoUpdate": false
        }
    },
    "productName": "Optimise MS Desktop"
}