SymphonyElectron/package.json
2023-10-19 17:00:34 +02:00

255 lines
8.3 KiB
JSON

{
"name": "symphony",
"productName": "Symphony",
"version": "24.2.0",
"clientVersion": "2.0.1",
"buildNumber": "0",
"searchAPIVersion": "1.55.3",
"sfeVersion": "0",
"sfeClientType": "1.5",
"description": "Symphony desktop app (Foundation ODP)",
"author": "Symphony OSS <help@finos.org>",
"main": "lib/src/app/init.js",
"types": "lib/src/app/init.d.ts",
"scripts": {
"browserify": "run-s browserify-*",
"browserify-preload": "browserify -o lib/src/renderer/_preload-main.js -x electron --insert-global-vars=__filename,__dirname lib/src/renderer/preload-main.js",
"browserify-preload-component": "browserify -o lib/src/renderer/_preload-component.js -x electron --insert-global-vars=__filename,__dirname -t imgurify lib/src/renderer/preload-component.js",
"compile": "run-s lint compile:*",
"compile:project": "gulp build",
"dev": "gulp build && npm run browserify && cross-env ELECTRON_DEV=true electron .",
"demo": "run-os",
"demo:win32": "gulp build && npm run browserify && cross-env ELECTRON_DEV=true electron . --url=file:///src/demo/index.html",
"demo:darwin": "gulp build && npm run browserify && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/src/demo/index.html",
"format": "pretty-quick",
"lint": "run-s lint:*",
"lint:project": "tslint --project tsconfig.json",
"lint:spec": "tslint --project tsconfig.spec.json",
"packed-linux": "npm run prebuild && npm run test && ./node_modules/.bin/electron-builder build --linux",
"packed-mac": "npm run unpacked-mac && packagesbuild -v installer/mac/symphony-mac-packager.pkgproj",
"prebuild": "run-s compile browserify",
"postinstall": "electron-builder install-app-deps",
"start": "run-s compile browserify && cross-env ELECTRON_DEV=true electron .",
"test": "run-s lint test:unit",
"test:unit": "cross-env ELECTRON_QA=true jest --config jest-config.json --runInBand --detectOpenHandles",
"unpacked-mac": "npm run prebuild && npm run test && ./node_modules/.bin/electron-builder build --mac",
"unpacked-win": "npm run prebuild && npm run test && node_modules\\.bin\\electron-builder build --win --x64"
},
"build": {
"appId": "com.symphony.electron-desktop",
"compression": "maximum",
"artifactName": "${productName}-${version}-${os}.${ext}",
"asar": true,
"asarUnpack": "**/*.node",
"nsis": {
"perMachine": false,
"oneClick": true,
"allowToChangeInstallationDirectory": false,
"allowElevation": false,
"include": "build/installer.nsh",
"uninstallDisplayName": "${productName}"
},
"files": [
"!.git${/*}",
"!coverage/*",
"!installer/*",
"!dist/*",
"!src/*",
"!tests/*",
"!node_modules/@nornagon/cld/deps/cld${/*}",
"!node_modules/@nornagon/cld/build/deps${/*}",
"!node_modules/@nornagon/spellchecker/vendor${/*}",
"!**/*.map"
],
"extraFiles": [
"config/Symphony.config",
"config/titleBarStyles.css",
"config/InstallVariant.info",
"dictionaries/**",
"node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator"
],
"mac": {
"category": "public.app-category.business",
"icon": "images/icon.icns",
"entitlements": "entitlements.mac.plist",
"notarize": false,
"entitlementsInherit": "entitlements.mac.plist",
"extendInfo": {
"CFBundleURLTypes": [
{
"CFBundleTypeRole": "Viewer",
"CFBundleURLName": "SymTel",
"CFBundleURLSchemes": [
"tel"
]
}
]
},
"gatekeeperAssess": true,
"hardenedRuntime": true,
"target": [
"dir",
"zip"
]
},
"win": {
"icon": "images/icon.ico",
"target": [
"dir",
"nsis"
],
"files": [
"**/*",
"!.git${/*}",
"!**/installer${/*}",
"!node_modules/@symphony/symphony-c9-shell${/*}",
"!**/node_modules/@nornagon/cld/deps/cld${/*}",
"!**/node_modules/@nornagon/cld/build/deps${/*}",
"!**/node_modules/@nornagon/spellchecker/vendor${/*}",
"!**/*.map",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!**/node_modules/*.d.ts",
"!**/node_modules/.bin",
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
"!.editorconfig",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
"!**/{appveyor.yml,.travis.yml,circle.yml}",
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
],
"extraFiles": [
{
"from": "node_modules/screen-share-indicator-frame/ScreenShareIndicatorFrame.exe",
"to": "ScreenShareIndicatorFrame.exe"
},
{
"from": "node_modules/screen-snippet/ScreenSnippet.exe",
"to": "ScreenSnippet.exe"
},
{
"from": "node_modules/symphony-native-window-handle-helper/SymphonyNativeWindowHandleHelper.exe",
"to": "SymphonyNativeWindowHandleHelper.exe"
},
{
"from": "node_modules/@symphony/symphony-c9-shell/shell",
"to": "cloud9/shell",
"filter": [
"**/*"
]
}
]
},
"linux": {
"category": "Network;InstantMessaging;Chat",
"desktop": {
"StartupWMClass": "Symphony"
},
"target": [
"deb",
"rpm"
],
"icon": "images/linux"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/SymphonyOSS/SymphonyElectron.git"
},
"keywords": [
"Symphony",
"start"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://support.symphony.com"
},
"devDependencies": {
"@types/cheerio": "^0.22.22",
"@types/enzyme": "^3.10.7",
"@types/fs-extra": "^9.0.0",
"@types/jest": "23.3.12",
"@types/node": "^18.16.0",
"@types/react": "16.14.34",
"@types/react-dom": "16.9.17",
"@types/rimraf": "^3.0.0",
"browserify": "17.0.0",
"builder-util-runtime": "^9.0.3",
"cross-env": "7.0.3",
"del": "3.0.0",
"electron": "26.2.4",
"electron-builder": "^24.2.1",
"electron-icon-maker": "0.0.5",
"electron-osx-sign": "^0.6.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.10.0",
"enzyme-to-json": "^3.3.5",
"gulp": "4.0.2",
"gulp-less": "5.0.0",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.3",
"gulp-sourcemaps": "2.6.5",
"gulp-tap": "^2.0.0",
"gulp-template": "^5.0.0",
"gulp-typescript": "5.0.1",
"husky": "^4.3.8",
"imgurify": "^2.0.1",
"jest": "25.2.4",
"jest-html-reporter": "3.7.0",
"js-yaml": "^4.1.0",
"less": "^3.13.1",
"ncp": "2.0.0",
"node-abi": "^3.8.0",
"npm-run-all": "4.1.5",
"prettier": "2.8.4",
"pretty-quick": "^3.1.0",
"run-script-os": "^1.1.6",
"source-map": "^0.7.4",
"ts-jest": "25.3.0",
"tslint": "5.20.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.9.5"
},
"dependencies": {
"@types/lazy-brush": "^1.0.0",
"archiver": "5.3.1",
"async.map": "0.5.2",
"classnames": "2.2.6",
"electron-dl": "3.5.0",
"electron-fetch": "1.9.1",
"electron-log": "4.4.8",
"electron-updater": "^6.1.3",
"filesize": "^10.0.6",
"lazy-brush": "^1.0.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"rimraf": "^3.0.2",
"save-svg-as-png": "^1.4.17",
"shell-path": "^3.0.0",
"systeminformation": "5.21.7",
"win32-api": "^20.1.0"
},
"optionalDependencies": {
"@symphony/symphony-c9-shell": "3.26.0-0.98.2.165",
"screen-share-indicator-frame": "git+https://github.com/finos/ScreenShareIndicatorFrame.git#v1.4.13",
"screen-snippet": "git+https://github.com/finos/ScreenSnippet2.git#9.2.2",
"symphony-native-window-handle-helper": "github:finos/SymphonyWindowsHwndHelper#1.0.1",
"winreg": "^1.2.4"
},
"ava": {
"failFast": true,
"files": [
"lib/spectron/**/*.spec.js"
],
"ignoredByWatcher": [
"!lib/src/**/*.js"
]
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && npm run lint"
}
}
}