mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 13:03:22 +00:00
313 lines
7.8 KiB
JSON
313 lines
7.8 KiB
JSON
{
|
|
"name": "zulip",
|
|
"productName": "Zulip",
|
|
"version": "5.7.0",
|
|
"main": "./app/main",
|
|
"description": "Zulip Desktop App",
|
|
"license": "Apache-2.0",
|
|
"copyright": "Kandra Labs, Inc.",
|
|
"author": {
|
|
"name": "Kandra Labs, Inc.",
|
|
"email": "support@zulip.com"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/zulip/zulip-desktop.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/zulip/zulip-desktop/issues"
|
|
},
|
|
"engines": {
|
|
"node": ">=12.10.0"
|
|
},
|
|
"scripts": {
|
|
"start": "tsc && electron .",
|
|
"clean-ts-files": "git clean app/*.js -e node_modules -xf",
|
|
"watch-ts": "tsc -w",
|
|
"reinstall": "rimraf node_modules && npm install",
|
|
"postinstall": "electron-builder install-app-deps",
|
|
"lint-css": "stylelint app/renderer/css/*.css",
|
|
"lint-html": "./node_modules/.bin/htmlhint \"app/renderer/*.html\" ",
|
|
"lint-js": "xo",
|
|
"prettier-non-js": "prettier --check --ignore-path=.prettierignore.non-js --loglevel=warn .",
|
|
"test": "tsc --noEmit && npm run lint-html && npm run lint-css && npm run lint-js && npm run prettier-non-js",
|
|
"test-e2e": "tsc && tape 'tests/*.js'",
|
|
"pack": "tsc && electron-builder --dir",
|
|
"dist": "tsc && electron-builder",
|
|
"mas": "tsc && electron-builder --mac mas"
|
|
},
|
|
"pre-commit": [
|
|
"test"
|
|
],
|
|
"build": {
|
|
"afterSign": "./scripts/notarize.js",
|
|
"appId": "org.zulip.zulip-electron",
|
|
"asar": true,
|
|
"asarUnpack": [
|
|
"**/*.node"
|
|
],
|
|
"files": [
|
|
"app/**/*"
|
|
],
|
|
"copyright": "©2020 Kandra Labs, Inc.",
|
|
"mac": {
|
|
"category": "public.app-category.productivity",
|
|
"target": [
|
|
{
|
|
"target": "default",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
},
|
|
"pkg"
|
|
],
|
|
"darkModeSupport": true,
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
|
"hardenedRuntime": true,
|
|
"entitlements": "build/entitlements.mac.plist",
|
|
"entitlementsInherit": "build/entitlements.mac.plist",
|
|
"gatekeeperAssess": false
|
|
},
|
|
"linux": {
|
|
"category": "Chat;GNOME;GTK;Network;InstantMessaging",
|
|
"icon": "build/icon.icns",
|
|
"description": "Zulip Desktop Client for Linux",
|
|
"target": [
|
|
"deb",
|
|
"zip",
|
|
"AppImage",
|
|
"snap"
|
|
],
|
|
"maintainer": "Akash Nimare <akash@zulip.com>",
|
|
"artifactName": "${productName}-${version}-${arch}.${ext}"
|
|
},
|
|
"deb": {
|
|
"packageCategory": "net",
|
|
"synopsis": "Zulip Desktop App",
|
|
"afterInstall": "./packaging/deb-after-install.sh",
|
|
"fpm": [
|
|
"./packaging/deb-apt.list=/etc/apt/sources.list.d/zulip-desktop.list",
|
|
"./packaging/deb-apt.asc=/etc/apt/trusted.gpg.d/zulip-desktop.asc",
|
|
"./packaging/deb-release-upgrades.cfg=/etc/update-manager/release-upgrades.d/zulip-desktop.cfg"
|
|
]
|
|
},
|
|
"snap": {
|
|
"synopsis": "Zulip Desktop App"
|
|
},
|
|
"dmg": {
|
|
"background": "build/dmg-background.tiff",
|
|
"icon": "build/dmg-icon.icns"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis-web",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
},
|
|
{
|
|
"target": "msi",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
}
|
|
],
|
|
"icon": "build/icon.ico",
|
|
"artifactName": "${productName}-Web-Setup-${version}.${ext}",
|
|
"publisherName": "Kandra Labs, Inc."
|
|
},
|
|
"nsis": {
|
|
"allowToChangeInstallationDirectory": true,
|
|
"oneClick": false,
|
|
"perMachine": false
|
|
}
|
|
},
|
|
"keywords": [
|
|
"Zulip",
|
|
"Group Chat app",
|
|
"electron-app",
|
|
"electron",
|
|
"Desktop app",
|
|
"InstantMessaging"
|
|
],
|
|
"dependencies": {
|
|
"@electron-elements/send-feedback": "^2.0.3",
|
|
"@sentry/electron": "^2.4.1",
|
|
"@yaireo/tagify": "^4.1.1",
|
|
"adm-zip": "^0.5.5",
|
|
"auto-launch": "^5.0.5",
|
|
"backoff": "^2.5.0",
|
|
"electron-log": "^4.3.5",
|
|
"electron-updater": "^4.3.8",
|
|
"electron-window-state": "^5.0.3",
|
|
"escape-goat": "^3.0.0",
|
|
"get-stream": "^6.0.1",
|
|
"i18n": "^0.13.2",
|
|
"iso-639-1": "^2.1.9",
|
|
"node-json-db": "^1.3.0",
|
|
"semver": "^7.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/adm-zip": "^0.4.34",
|
|
"@types/auto-launch": "^5.0.1",
|
|
"@types/backoff": "^2.5.1",
|
|
"@types/i18n": "^0.13.0",
|
|
"@types/node": "^15.0.1",
|
|
"@types/requestidlecallback": "^0.3.1",
|
|
"@types/yaireo__tagify": "^4.1.0",
|
|
"dotenv": "^8.2.0",
|
|
"electron": "^12.0.6",
|
|
"electron-builder": "^22.10.5",
|
|
"electron-notarize": "^1.0.0",
|
|
"eslint-import-resolver-typescript": "^2.4.0",
|
|
"htmlhint": "^0.14.2",
|
|
"pre-commit": "^1.2.2",
|
|
"prettier": "^2.3.2",
|
|
"rimraf": "^3.0.2",
|
|
"spectron": "^14.0.0",
|
|
"stylelint": "^13.13.0",
|
|
"stylelint-config-prettier": "^8.0.2",
|
|
"stylelint-config-standard": "^22.0.0",
|
|
"tape": "^5.2.2",
|
|
"typescript": "^4.2.4",
|
|
"xo": "^0.39.1"
|
|
},
|
|
"prettier": {
|
|
"bracketSpacing": false,
|
|
"singleQuote": false,
|
|
"trailingComma": "all"
|
|
},
|
|
"xo": {
|
|
"prettier": true,
|
|
"rules": {
|
|
"@typescript-eslint/no-dynamic-delete": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"arrow-body-style": "error",
|
|
"import/first": "error",
|
|
"import/newline-after-import": "error",
|
|
"import/no-cycle": "error",
|
|
"import/no-restricted-paths": [
|
|
"error",
|
|
{
|
|
"zones": [
|
|
{
|
|
"target": "./app/common",
|
|
"from": "./app",
|
|
"except": [
|
|
"./common",
|
|
"./translations"
|
|
]
|
|
},
|
|
{
|
|
"target": "./app/main",
|
|
"from": "./app",
|
|
"except": [
|
|
"./common",
|
|
"./main",
|
|
"./translations"
|
|
]
|
|
},
|
|
{
|
|
"target": "./app/renderer",
|
|
"from": "./app",
|
|
"except": [
|
|
"./common",
|
|
"./renderer",
|
|
"./translations"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"alphabetize": {
|
|
"order": "asc"
|
|
},
|
|
"newlines-between": "always"
|
|
}
|
|
],
|
|
"import/unambiguous": "error",
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"paths": [
|
|
{
|
|
"name": "electron",
|
|
"importNames": [
|
|
"ipcMain",
|
|
"ipcRenderer"
|
|
],
|
|
"message": "Use typed-ipc-main and typed-ipc-renderer."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"no-warning-comments": "off",
|
|
"sort-imports": [
|
|
"error",
|
|
{
|
|
"ignoreDeclarationSort": true
|
|
}
|
|
],
|
|
"strict": "error"
|
|
},
|
|
"envs": [
|
|
"node",
|
|
"browser"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"**/*.ts"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"error",
|
|
{
|
|
"disallowTypeAnnotations": false
|
|
}
|
|
],
|
|
"@typescript-eslint/no-redeclare": "error",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"args": "after-used",
|
|
"argsIgnorePattern": "^_",
|
|
"caughtErrors": "all"
|
|
}
|
|
],
|
|
"no-redeclare": "off"
|
|
},
|
|
"settings": {
|
|
"import/resolver": "typescript"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"app/renderer/js/injected.ts",
|
|
"scripts/notarize.js",
|
|
"tests/**/*.js"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"**/*.d.ts"
|
|
],
|
|
"rules": {
|
|
"import/unambiguous": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|