{
  "name": "ontime",
  "version": "0.5.1",
  "author": "Carlos Valente",
  "description": "Time keeping for live events",
  "repository": "https://github.com/cpvalente/ontime",
  "keywords": [
    "lighdev",
    "ontime",
    "timer"
  ],
  "license": "AGPL-3.0-only",
  "main": "main.js",
  "devDependencies": {
    "electron": "^13.6.1",
    "electron-builder": "^22.14.5",
    "eslint": "^8.5.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^4.0.0",
    "jest": "^27.4.5",
    "prettier": "^2.5.1"
  },
  "scripts": {
    "nodestart": "NODE_ENV=development node src/app.js",
    "setdb": "cp data/db.json src/data/db.json",
    "clean": "rm -rf ../client/build/ && rm -rf ../client/node_modules && rm -rf src/node_modules && rm -rf ./node_modules && rm -rf ./dist",
    "cheat": "rm src/node_modules/ontime-utils && cp -R utils src/node_modules/ontime-utils",
    "prep": "yarn clean && yarn setdb",
    "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
    "start": "NODE_ENV=development electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder",
    "dist-win": "electron-builder --publish=never  --x64 --win",
    "dist-mac": "electron-builder --publish=never  --x64 --mac",
    "dist-all": "electron-builder -mw"
  },
  "jest": {
    "testEnvironment": "node",
    "testRunner": "jasmine2",
    "testPathIgnorePatterns": [
      "dist"
    ]
  },
  "build": {
    "productName": "ontime",
    "appId": "no.lightdev.ontime",
    "asar": true,
    "dmg": {
      "artifactName": "ontime-macOS.dmg",
      "icon": "icon.icns"
    },
    "mac": {
      "target": "dmg",
      "category": "public.app-category.productivity",
      "icon": "icon.icns"
    },
    "win": {
      "target": "nsis"
    },
    "nsis": {
      "artifactName": "ontime-win64.exe",
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "allowElevation": false,
      "createDesktopShortcut": true,
      "createStartMenuShortcut": true,
      "deleteAppDataOnUninstall": true,
      "runAfterFinish": false,
      "installerIcon": "icon.ico",
      "installerSidebar": "ontime-install.bmp",
      "uninstallerSidebar": "ontime-uninstall.bmp"
    },
    "files": [
      "**/*",
      "assets/",
      "!**/{yarn.lock,yarn-error.log}",
      "!**/{test,tests,__test__,__tests__,mock,mocks,__mock__,__mocks__}"
    ],
    "directories": {
      "buildResources": "./assets/"
    },
    "extraResources": [
      {
        "from": "../client/build",
        "to": "extraResources/client/build",
        "filter": [
          "**/*",
          "!**/{yarn.lock,yarn-error.log}",
          "!**/{test,tests,__test__,__tests__,mock,mocks,__mock__,__mocks__}"
        ]
      },
      {
        "from": "src",
        "to": "extraResources/src",
        "filter": [
          "**/*",
          "!**/{yarn.lock,yarn-error.log}",
          "!**/{test,tests,__test__,__tests__,mock,mocks,__mock__,__mocks__}"
        ]
      },
      {
        "from": "utils",
        "to": "extraResources/utils",
        "filter": [
          "**/*",
          "!**/{yarn.lock,yarn-error.log}",
          "!**/{test,tests,__test__,__tests__,mock,mocks,__mock__,__mocks__}"
        ]
      }
    ]
  },
  "postinstall": "electron-builder install-app-deps"
}
