cozy-labs/cozy-desktop

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "CozyDrive",
  "productName": "Cozy Drive",
  "private": true,
  "version": "3.40.0-beta.1",
  "description": "Cozy Drive is a synchronization tool for your files and folders with Cozy Cloud.",
  "homepage": "https://github.com/cozy-labs/cozy-desktop",
  "author": "Cozy Cloud <contact@cozycloud.cc> (https://cozycloud.cc/)",
  "license": "AGPL-3.0",
  "bugs": {
    "url": "https://github.com/cozy-labs/cozy-desktop/issues"
  },
  "main": "gui/main.js",
  "repository": {
    "type": "git",
    "url": "git://github.com/cozy-labs/cozy-desktop.git"
  },
  "engines": {
    "node": ">=14.17.6"
  },
  "keywords": [
    "Electron",
    "desktop",
    "drive",
    "data",
    "sync",
    "files",
    "cozy"
  ],
  "scripts": {
    "bootstrap": "yarn dev:setup && yarn test:setup",
    "bootstrap:remote": "electron ./dev/remote/generate-test-env.js",
    "build": "yarn build:css && yarn build:elm && yarn build:tx",
    "build:css": "stylus --sourcemap --compress --use cozy-ui/stylus gui/styles/app.styl --out gui",
    "build:elm": "elm make ./gui/elm/Main.elm --output ./gui/elm.js",
    "build:tx": "tx pull --all --minimum-perc=1 || true",
    "capture": "env-cmd -f .env.test electron ./dev/capture.js",
    "capture:manual": "env-cmd -f .env.test electron ./dev/chokidar.js",
    "clean": "rimraf core/lib/ core/tmp/ gui/elm.js gui/app.css* gui/dist/",
    "cozy-stack": "yarn docker:exec cozy-stack",
    "dev:setup": "yarn docker:exec /cozy-desktop/dev/setup.sh",
    "dev:elm": "yarn watch:css & yarn watch:elm & python2 -m SimpleHTTPServer 8000",
    "dev:exclusions": "env-cmd -f .env.dev electron ./dev/remote/change-dir-exclusions.js",
    "dist": "electron-builder build",
    "docker:exec": "docker exec -it cozy-desktop-stack",
    "elm:upgrade": "cd gui && yarn add --dev elm@latest elm-upgrade@latest && elm-upgrade",
    "jq": "cross-env HOME=. nice -n 19 jq",
    "jsdoc": "jsdoc -c .jsdoc.json -r ./CODE_ORGANIZATION.md -d ./doc/api/ core/ dev/ gui/ test/",
    "jsdoc:watch": "chokidar package.json .jsdoc.json ./CODE_ORGANIZATION.md 'core/**/*.js' 'dev/**/*.js' 'gui/**/*.js' 'test/**/*.js' -c 'yarn jsdoc'",
    "lint": "yarn lint:flow && yarn lint:eslint",
    "lint:flow": "flow status --quiet --show-all-errors",
    "lint:elm": "elm-format --validate gui/elm test/elm",
    "lint:eslint": "eslint './core/**/*.js' 'dev/**/*.js' gui/main.js gui/ports.js 'gui/js/**/*.js' 'gui/utils/**/*.js' './test/**/*.js'",
    "mocha": "env-cmd -f .env.test electron-mocha ./test/support/hooks/index.js",
    "mocha:coverage": "yarn mocha --require ./test/support/coverage --reporter ./test/support/istanbul_reporter",
    "mocha:watch": "./test/watch.sh",
    "install:all": "yarn && yarn install:electron",
    "install:electron": "electron-builder install-app-deps",
    "prebuild": "yarn clean",
    "repl": "env-cmd -f .env.dev electron ./dev/repl.js",
    "stack:reset": "sudo ./node_modules/.bin/rimraf tmp/couchdb tmp/cozy-storage",
    "start": "env-cmd -f .env.dev electron .",
    "test": "yarn test:world && yarn test:unit && yarn test:elm && yarn test:integration && yarn test:scenarios",
    "test:coverage": "yarn test:unit:coverage && yarn test:integration",
    "test:elm": "elm-test test/elm/*.elm",
    "test:integration": "yarn mocha test/integration",
    "test:performance": "yarn mocha test/performance",
    "test:property": "env NO_ELECTRON=true BLUEBIRD_WARNINGS=0 mocha --exit test/property",
    "test:scenarios": "yarn mocha --reporter=list test/scenarios/run.js",
    "test:setup": "yarn docker:exec /cozy-desktop/test/setup.sh",
    "test:unit": "yarn mocha test/unit/",
    "test:unit:coverage": "yarn mocha:coverage test/unit/",
    "test:world": "yarn mocha test/world/",
    "watch": "yarn watch:core & cross-env WATCH=true yarn start & yarn watch:css & yarn watch:elm & yarn watch:js",
    "watch:core": "yarn build:core --watch",
    "watch:css": "stylus --sourcemap  --use cozy-ui/stylus --watch gui/styles/app.styl --out gui",
    "watch:elm": "chokidar 'gui/elm/**/*.elm' -c 'yarn build:elm'",
    "watch:js": "chokidar 'gui/js/**/*.js' gui/main.js gui/ports.js -c 'eslint {path}'"
  },
  "dependencies": {
    "@babel/runtime": "7.16.7",
    "@electron/remote": "2.0.8",
    "@parcel/watcher": "https://github.com/taratatach/parcel-watcher.git#v3.0.0",
    "@sentry/electron": "3.0.7",
    "@sentry/integrations": "7.5.1",
    "agent-base": "7.1.0",
    "async": "3.2.3",
    "auto-bind": "4.0.0",
    "auto-launch": "^5.0.3",
    "babel-polyfill": "^6.26.0",
    "bluebird": "3.7.2",
    "btoa": "^1.1.2",
    "bufferutil": "^4.0.7",
    "bunyan": "2.0.5",
    "chokidar": "^3.5.0",
    "cozy-client": "^38.2.0",
    "cozy-client-js": "^0.21.0",
    "cozy-flags": "^3.0.1",
    "cozy-realtime": "^4.6.0",
    "cozy-stack-client": "^38.0.2",
    "deep-diff": "^1.0.2",
    "dtrace-provider": "^0.8.8",
    "electron-fetch": "1.7.4",
    "electron-positioner": "^4.0.0",
    "electron-updater": "^4.1.2",
    "fs-extra": "10.0.0",
    "http-proxy-agent": "7.0.0",
    "https-proxy-agent": "7.0.0",
    "isomorphic-fetch": "3.0.0",
    "lnk": "^1.1.0",
    "lodash": "4.17.21",
    "lru-cache": "9.1.1",
    "micromatch": "4.0.4",
    "mime": "3.0.0",
    "nan": "2.17.0",
    "node-abi": "3.5.0",
    "open": "8.4.0",
    "pac-proxy-agent": "6.0.3",
    "pouchdb": "^8.0.1",
    "pouchdb-find": "^8.0.1",
    "prop-types": "15.8.1",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-markdown": "6.0.3",
    "read": "1.0.7",
    "regedit": "5.0.0",
    "secret-event-listener": "1.0.0",
    "semver": "7.3.5",
    "socks-proxy-agent": "8.0.1",
    "tar": "6.1.11",
    "utf-8-validate": "^6.0.3",
    "uuid": "8.3.2",
    "ws": "^8.13.0",
    "yargs": "17.3.1"
  },
  "devDependencies": {
    "@babel/core": "7.16.7",
    "@electron/notarize": "^2.1.0",
    "@sentry/cli": "^2.3.0",
    "babel-preset-cozy-app": "^2.0.1",
    "chai": "4.3.4",
    "chai-like": "1.1.1",
    "cheerio": "0.22.0",
    "chokidar-cli": "3.0.0",
    "commander": "8.3.0",
    "cozy-ui": "^35.38.0",
    "cross-env": "7.0.3",
    "debug-menu": "^0.6.1",
    "del": "^6.0.0",
    "devtron": "^1.4.0",
    "electron": "23.0.0",
    "electron-builder": "^23.6.0",
    "electron-download": "^4.1.1",
    "electron-mocha": "11.0.2",
    "elm": "^0.19.1",
    "elm-format": "0.8.5",
    "elm-test": "^0.19.1",
    "elm-upgrade": "0.19.8",
    "env-cmd": "10.1.0",
    "eslint-config-cozy-app": "^4.0.0",
    "eslint-plugin-node": "11.1.0",
    "eslint-plugin-promise": "6.0.0",
    "faker": "5.5.3",
    "flow-bin": "^0.108.0",
    "flow-typed": "3.6.1",
    "glob": "7.2.0",
    "istanbul": "0.4.5",
    "istanbul-api": "3.0.0",
    "istanbul-lib-coverage": "3.2.0",
    "istanbul-lib-hook": "3.0.0",
    "jsdoc": "3.6.7",
    "jsverify": "^0.8.4",
    "mocha-clean": "^1.0.0",
    "pouchdb-adapter-memory": "^8.0.1",
    "rimraf": "3.0.2",
    "should": "^13.2.3",
    "should-sinon": "0.0.6",
    "sinon": "12.0.1",
    "source-map-support": "0.5.21",
    "stylus": "0.56.0",
    "treeify": "^1.1.0"
  },
  "optionalDependencies": {
    "@gyselroth/windows-fsstat": "https://github.com/taratatach/node-windows-fsstat.git#1.0.0"
  },
  "resolutions": {
    "dtrace-provider": "0.8.8",
    "nan": "2.17.0",
    "node-abi": "3.5.0",
    "node-gyp": "9.3.1"
  }
}