|
24 | 24 | "start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod$MULTI electron .",
|
25 | 25 | "start-prod:pretty": "yarn start-prod | npx pino-pretty",
|
26 | 26 | "start-dev": "cross-env NODE_ENV=development NODE_APP_INSTANCE=devprod$MULTI electron .",
|
27 |
| - "build-everything": "yarn print-deps && yarn clean && yarn protobuf && yarn update-git-info && yarn sass && yarn build:locales-soft && tsc && yarn build:workers", |
28 |
| - "build-everything:soft": "yarn print-deps && yarn clean && yarn protobuf && yarn update-git-info && yarn sass && yarn build:locales-soft && tsc && yarn build:workers", |
29 |
| - "build-everything:watch": "yarn clean && yarn protobuf && yarn update-git-info && yarn sass && yarn build:locales-soft && yarn build:workers && yarn tsc -w", |
| 27 | + "build": "yarn print-deps && yarn clean && yarn protobuf && yarn update-git-info && yarn sass && yarn build:locales-soft && tsc && yarn build:workers", |
30 | 28 | "start-dev:pretty": "yarn start-dev | npx pino-pretty",
|
31 |
| - "build:workers": "yarn worker:utils && yarn worker:libsession", |
| 29 | + "build:workers": "yarn worker:utils && yarn worker:libsession && yarn worker:image_processor", |
32 | 30 | "build:locales": "python3 ./tools/localization/generateLocales.py --generate-types --print-problems --error-on-problems --error-old-dynamic-variables",
|
33 | 31 | "build:locales-soft": "python3 ./tools/localization/generateLocales.py --generate-types --print-problems --print-problem-strings",
|
34 |
| - "watch": "yarn clean && yarn protobuf && yarn update-git-info && yarn build-everything:watch", |
35 | 32 | "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 --force-long",
|
36 | 33 | "sass": "rimraf --glob 'stylesheets/dist/' && webpack --config=./sass.config.js",
|
37 | 34 | "clean": "rimraf --glob 'ts/**/*.js' 'ts/*.js' 'ts/*.js.map' 'ts/**/*.js.map tsconfig.tsbuildinfo'",
|
|
47 | 44 | "update-git-info": "node ./build/updateLocalConfig.js",
|
48 | 45 | "worker:utils": "webpack --config=./utils.worker.config.js",
|
49 | 46 | "worker:libsession": "rimraf --glob 'ts/webworker/workers/node/libsession/*.node' && webpack --config=./libsession.worker.config.js",
|
| 47 | + "worker:image_processor": "webpack --config=./image_processor.worker.config.js", |
50 | 48 | "dedup": "npx --yes yarn-deduplicate yarn.lock",
|
51 | 49 | "prepare": "husky",
|
52 |
| - "print-deps": "node -v && python3 --version" |
| 50 | + "print-deps": "node -v && python3 --version", |
| 51 | + "watch": "yarn clean && yarn update-git-info && concurrently -n PBJS,SASS,LOCALES,UTIL,LIBSESSION,IMAGE,TS -c yellow,green,red,blue,blue,blue,green \"yarn protobuf\" \"yarn sass --watch\" \"yarn build:locales-soft\" \"yarn worker:utils --watch\" \"yarn worker:libsession --watch\" \"yarn worker:image_processor --watch\" \"yarn tsc --watch\"" |
| 52 | + |
53 | 53 | },
|
54 | 54 | "dependencies": {
|
55 | 55 | "@emoji-mart/data": "^1.2.1",
|
|
60 | 60 | "abort-controller": "3.0.0",
|
61 | 61 | "auto-bind": "^4.0.0",
|
62 | 62 | "blob-util": "2.0.2",
|
63 |
| - "blueimp-load-image": "^5.16.0", |
64 | 63 | "buffer-crc32": "1.0.0",
|
65 | 64 | "bytebuffer": "^5.0.1",
|
66 | 65 | "clsx": "^2.1.1",
|
|
113 | 112 | "rimraf": "6.0.1",
|
114 | 113 | "sanitize.css": "^12.0.1",
|
115 | 114 | "semver": "^7.7.1",
|
| 115 | + "sharp": "^0.34.3", |
116 | 116 | "styled-components": "^6.1.15",
|
117 | 117 | "uuid": "11.1.0",
|
118 | 118 | "viem": "^2.26.0",
|
|
125 | 125 | "@testing-library/jest-dom": "^6.4.6",
|
126 | 126 | "@testing-library/react": "^15.0.7",
|
127 | 127 | "@testing-library/user-event": "^14.6.1",
|
128 |
| - "@types/blueimp-load-image": "^5.16.6", |
129 | 128 | "@types/buffer-crc32": "^0.2.4",
|
130 | 129 | "@types/bytebuffer": "^5.0.49",
|
131 | 130 | "@types/chai": "4.3.20",
|
|
155 | 154 | "chai": "^4.5.0",
|
156 | 155 | "chai-as-promised": "^7.1.2",
|
157 | 156 | "chai-bytes": "^0.1.2",
|
| 157 | + "concurrently": "^9.2.0", |
158 | 158 | "cross-env": "^7.0.3",
|
159 | 159 | "css-loader": "^7.1.2",
|
160 | 160 | "electron": "34.2.0",
|
|
253 | 253 | "node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node",
|
254 | 254 | "node_modules/libsession_util_nodejs/build/Release/libsession_util_nodejs.node",
|
255 | 255 | "ts/webworker/workers/node/libsession/*.node",
|
256 |
| - "ts/mains/main_node.js" |
| 256 | + "ts/mains/main_node.js", |
| 257 | + "**/node_modules/sharp/**/*", |
| 258 | + "**/node_modules/@img/**/*" |
257 | 259 | ],
|
258 | 260 | "deb": {
|
259 | 261 | "depends": [
|
|
0 commit comments