@ -11,49 +11,63 @@
} ,
"main" : "main.js" ,
"scripts" : {
"postinstall" : "electron-builder install-app-deps && rimraf node_modules/dtrace-provider" ,
"postinstall" :
"electron-builder install-app-deps && rimraf node_modules/dtrace-provider" ,
"start" : "electron ." ,
"start-multi" : "NODE_APP_INSTANCE=1 electron ." ,
"start-multi2" : "NODE_APP_INSTANCE=2 electron ." ,
"start-prod" : "NODE_ENV=production NODE_APP_INSTANCE=devprod LOKI_DEV=1 electron ." ,
"start-prod-multi" : "NODE_ENV=production NODE_APP_INSTANCE=devprod1 LOKI_DEV=1 electron ." ,
"start-prod" :
"NODE_ENV=production NODE_APP_INSTANCE=devprod LOKI_DEV=1 electron ." ,
"start-prod-multi" :
"NODE_ENV=production NODE_APP_INSTANCE=devprod1 LOKI_DEV=1 electron ." ,
"grunt" : "grunt" ,
"icon-gen" : "electron-icon-maker --input=images/icon_1024.png --output=./build" ,
"icon-gen" :
"electron-icon-maker --input=images/icon_1024.png --output=./build" ,
"generate" : "yarn icon-gen && yarn grunt" ,
"build" : "electron-builder --config.extraMetadata.environment=$SIGNAL_ENV" ,
"build-release" : "export SIGNAL_ENV=production && npm run build -- --config.directories.output=release" ,
"build-release" :
"export SIGNAL_ENV=production && npm run build -- --config.directories.output=release" ,
"sign-release" : "node ts/updater/generateSignature.js" ,
"build-module-protobuf" : "pbjs --target static-module --wrap commonjs --out ts/protobuf/compiled.js protos/*.proto && pbts --out ts/protobuf/compiled.d.ts ts/protobuf/compiled.js" ,
"clean-module-protobuf" : "rm -f ts/protobuf/compiled.d.ts ts/protobuf/compiled.js" ,
"build-module-protobuf" :
"pbjs --target static-module --wrap commonjs --out ts/protobuf/compiled.js protos/*.proto && pbts --out ts/protobuf/compiled.d.ts ts/protobuf/compiled.js" ,
"clean-module-protobuf" :
"rm -f ts/protobuf/compiled.d.ts ts/protobuf/compiled.js" ,
"build-protobuf" : "yarn build-module-protobuf" ,
"clean-protobuf" : "yarn clean-module-protobuf" ,
"prepare-beta-build" : "node prepare_beta_build.js" ,
"prepare-import-build" : "node prepare_import_build.js" ,
"publish-to-apt" : "NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh" ,
"publish-to-apt" :
"NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh" ,
"test" : "yarn test-node && yarn test-electron" ,
"test-view" : "NODE_ENV=test yarn run start" ,
"test-lib-view" : "NODE_ENV=test-lib yarn run start" ,
"test-loki-view" : "NODE_ENV=test-loki yarn run start" ,
"test-electron" : "yarn grunt test" ,
"test-node" : "mocha --recursive --exit test/app test/modules ts/test libloki/test/node" ,
"test-node-coverage" : "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test libloki/test/node" ,
"test-node-coverage-html" : "nyc --reporter=lcov --reporter=html mocha --recursive test/app test/modules ts/test libloki/test/node" ,
"test-node" :
"mocha --recursive --exit test/app test/modules ts/test libloki/test/node" ,
"test-node-coverage" :
"nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test libloki/test/node" ,
"test-node-coverage-html" :
"nyc --reporter=lcov --reporter=html mocha --recursive test/app test/modules ts/test libloki/test/node" ,
"eslint" : "eslint ." ,
"lint" : "yarn format --list-different && yarn lint-windows" ,
"dev-lint" : "yarn format --list-different; yarn lint-windows" ,
"lint-windows" : "yarn eslint && yarn tslint" ,
"lint-deps" : "node ts/util/lint/linter.js" ,
"tslint" : "tslint --format stylish --project ." ,
"format" : "prettier --write \"*.{css,js,json,md,scss,ts,tsx}\" \"./**/*.{css,js,json,md,scss,ts,tsx}\"" ,
"format" :
"prettier --write \"*.{css,js,json,md,scss,ts,tsx}\" \"./**/*.{css,js,json,md,scss,ts,tsx}\"" ,
"transpile" : "tsc" ,
"clean-transpile" : "rimraf ts/**/*.js && rimraf ts/*.js" ,
"open-coverage" : "open coverage/lcov-report/index.html" ,
"styleguide" : "styleguidist server" ,
"pow-metrics" : "node metrics_app.js localhost 9000" ,
"ready" : "yarn clean-transpile && yarn grunt && yarn lint && yarn test-node && yarn test-electron && yarn lint-deps"
"ready" :
"yarn clean-transpile && yarn grunt && yarn lint && yarn test-node && yarn test-electron && yarn lint-deps"
} ,
"dependencies" : {
"@journeyapps/sqlcipher" : "https://github.com/scottnonnenberg-signal/node-sqlcipher.git#2e28733b61640556b0272a3bfc78b0357daf71e6" ,
"@journeyapps/sqlcipher" :
"https://github.com/scottnonnenberg-signal/node-sqlcipher.git#2e28733b61640556b0272a3bfc78b0357daf71e6" ,
"@sindresorhus/is" : "0.8.0" ,
"@types/dompurify" : "^2.0.0" ,
"backbone" : "1.3.3" ,
@ -72,7 +86,8 @@
"emoji-datasource" : "4.0.0" ,
"emoji-datasource-apple" : "4.0.0" ,
"emoji-js" : "3.4.0" ,
"emoji-panel" : "https://github.com/scottnonnenberg-signal/emoji-panel.git#v0.5.5" ,
"emoji-panel" :
"https://github.com/scottnonnenberg-signal/emoji-panel.git#v0.5.5" ,
"filesize" : "3.6.1" ,
"firstline" : "1.2.1" ,
"form-data" : "2.3.2" ,
@ -205,9 +220,7 @@
"artifactName" : "${name}-mac-${version}.${ext}" ,
"category" : "public.app-category.social-networking" ,
"icon" : "build/icons/mac/icon.icns" ,
"target" : [
"dmg"
] ,
"target" : [ "dmg" ] ,
"bundleVersion" : "1" ,
"hardenedRuntime" : true ,
"gatekeeperAssess" : false ,
@ -228,9 +241,7 @@
"url" : "https://updates.signal.org/desktop"
}
] ,
"target" : [
"nsis"
]
"target" : [ "nsis" ]
} ,
"nsis" : {
"deleteAppDataOnUninstall" : true
@ -241,9 +252,7 @@
"StartupWMClass" : "Loki Messenger"
} ,
"asarUnpack" : "node_modules/spellchecker/vendor/hunspell_dictionaries" ,
"target" : [
"deb"
] ,
"target" : [ "deb" ] ,
"icon" : "build/icons/png"
} ,
"deb" : {