aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
blob: 625f3b6e330513021c0af552d5ecffacaf46e13f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
  "name": "sophie",
  "version": "0.1.0",
  "description": "Messaging app built from the ground up with security in mind",
  "keywords": [
    "messaging",
    "app"
  ],
  "author": "Kristóf Marussy <kristof@marussy.com> (https://marussy.com)",
  "contributors": [
    "Vijay A <vraravam@users.noreply.github.com>"
  ],
  "license": "AGPL-3.0-only",
  "repository": "https://gitlab.com/say-hi-to-sophie/sophie",
  "private": true,
  "engines": {
    "node": ">=v16.14.2"
  },
  "type": "module",
  "main": "packages/main/dist/index.cjs",
  "scripts": {
    "clean": "rimraf coverage dist 'packages/*/dist' 'packages/*/*.tsbuildinfo' .vite",
    "test": "node --experimental-vm-modules --no-warnings $(yarn bin jest)",
    "test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit",
    "test:integ": "electron scripts/electronJest.cjs --user-data-dir=userDataDir/integ --config=jest.integ.config.cjs --runInBand",
    "test:integ:xvfb": "cross-env DISABLE_GPU=true xvfb-run -s \"-screen 0 1920x1080x24\" electron scripts/electronJest.cjs --user-data-dir=userDataDir/integ --disable-features=WebRTCPipeWireCapturer --ozone-platform=x11 --config=jest.integ.config.cjs --runInBand",
    "test:integ:ci": "cross-env DISABLE_GPU=true yarn test:integ --ci --coverage --reporters=default --reporters=jest-junit",
    "test:integ:xvfb:ci": "yarn test:integ:xvfb --ci --coverage --reporters=default --reporters=jest-junit",
    "build": "node scripts/build.js",
    "precompile": "cross-env MODE=production yarn run build",
    "compile": "yarn precompile && yarn compile:electron-builder",
    "compile:electron-builder": "electron-builder build --config .electron-builder.config.cjs --dir",
    "watch": "node scripts/watch.js",
    "watch:test": "yarn test --watch",
    "lint": "yarn types && yarn lint:only",
    "lint:ci": "yarn lint:only --format gitlab",
    "lint:only": "yarn lint:eslint . --ext .cjs,.js,.jsx,.ts,.tsx",
    "lint:precommit": "yarn types && yarn lint:eslint --fix",
    "lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=16384\" eslint",
    "lint:staged": "nano-staged",
    "typecheck": "yarn types && yarn typecheck:ci",
    "typecheck:ci": "yarn workspaces foreach -vp run typecheck:workspace",
    "typecheck:workspace": "yarn g:typecheck",
    "g:typecheck": "cd $INIT_CWD && tsc",
    "types": "yarn workspaces foreach -vpt run types",
    "g:types": "cd $INIT_CWD && tsc -b tsconfig.build.json",
    "postinstall": "is-ci || simple-git-hooks",
    "update-electron-vendors": "node scripts/updateElectronVendors.js",
    "main": "yarn workspace @sophie/main",
    "preload": "yarn workspace @sophie/preload",
    "renderer": "yarn workspace @sophie/renderer",
    "service-inject": "yarn workspace @sophie/service-inject",
    "service-preload": "yarn workspace @sophie/service-preload",
    "service-shared": "yarn workspace @sophie/service-shared",
    "shared": "yarn workspace @sophie/shared",
    "test-utils": "yarn workspace @sophie/test-utils"
  },
  "workspaces": [
    "packages/*"
  ],
  "devDependencies": {
    "@electron/fuses": "^1.5.0",
    "@types/is-ci": "^3.0.0",
    "@types/jest": "^27.5.1",
    "@types/prettier": "^2.6.3",
    "@typescript-eslint/eslint-plugin": "^5.27.0",
    "@typescript-eslint/parser": "^5.27.0",
    "@vitejs/plugin-react": "^1.3.2",
    "chokidar": "^3.5.3",
    "cross-env": "^7.0.3",
    "electron": "^19.0.1",
    "electron-builder": "^23.1.0",
    "esbuild": "^0.14.42",
    "eslint": "^8.16.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-airbnb-base": "^15.0.0",
    "eslint-config-airbnb-typescript": "^17.0.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-formatter-gitlab": "^3.0.0",
    "eslint-import-resolver-typescript": "^2.7.1",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-jest": "^26.4.6",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-promise": "^6.0.0",
    "eslint-plugin-react": "^7.30.0",
    "eslint-plugin-react-hooks": "^4.5.0",
    "eslint-plugin-security": "^1.5.0",
    "eslint-plugin-unicorn": "^42.0.0",
    "git-repo-info": "^2.1.1",
    "is-ci": "^3.0.1",
    "jest": "^28.1.0",
    "jest-cli": "^28.1.0",
    "jest-environment-node": "^28.1.0",
    "jest-junit": "^13.2.0",
    "nano-staged": "^0.8.0",
    "prettier": "^2.6.2",
    "rimraf": "^3.0.2",
    "simple-git-hooks": "^2.8.0",
    "typescript": "^4.7.2",
    "vite": "^2.9.9"
  },
  "packageManager": "yarn@3.2.1"
}