Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 1 | { |
simon | 42930d3 | 2022-10-14 14:36:54 -0400 | [diff] [blame] | 2 | "name": "jami-web", |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 3 | "version": "1.0.0", |
| 4 | "description": "Jaas Web API that handles client requests to Jami daemon", |
simon | c7d5245 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 5 | "license": "ISC", |
| 6 | "author": "Larbi Gharib", |
| 7 | "type": "module", |
| 8 | "main": "app.ts", |
| 9 | "scripts": { |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 10 | "start": "concurrently \"npm run start-old-server\" \"npm start --workspace server\" \"npm start --workspace client\"", |
| 11 | "start:prod": "concurrently \"npm run start-old-server:prod\" \"npm run start:prod --workspace server\" \"npm run start:prod --workspace client\"", |
simon | 42930d3 | 2022-10-14 14:36:54 -0400 | [diff] [blame] | 12 | "start-old-server": "rollup -cw", |
| 13 | "start-old-server:prod": "env NODE_ENV=production node dist/bundle.js", |
| 14 | "build": "npm run build --workspaces; npm run build-old-server", |
| 15 | "build-old-server": "rollup -c", |
| 16 | "clean": "rm -rf dist && npm run clean --workspaces", |
| 17 | "clean:all": "npm run clean && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +", |
| 18 | "lint": "npm run lint-old-server; npm run lint --workspaces", |
| 19 | "lint:fix": "npm run lint-old-server:fix; npm run lint:fix --workspaces", |
| 20 | "lint-old-server": "eslint app.ts JamiDaemon.ts routes/", |
| 21 | "lint-old-server:fix": "npm run lint-old-server -- --fix", |
| 22 | "format": "npm run format-old-server; npm run format --workspaces", |
| 23 | "format:check": "npm run format-old-server:check; npm run format:check --workspaces", |
| 24 | "format-old-server": "prettier -w app.ts JamiDaemon.ts routes/", |
| 25 | "format-old-server:check": "prettier -c app.ts JamiDaemon.ts routes/", |
| 26 | "prepare": "([ -e '.git' ] && git config core.hooksPath .hooks); npm run build --workspace common" |
simon | c7d5245 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 27 | }, |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 28 | "lint-staged": { |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 29 | "**/*.{ts,tsx,js,jsx,cjs,html}": [ |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 30 | "eslint --fix", |
| 31 | "prettier --write" |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 32 | ], |
| 33 | "*.{json,md}": [ |
| 34 | "prettier --write" |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 35 | ] |
| 36 | }, |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 37 | "dependencies": { |
Adrien Béraud | 21921aa | 2022-09-18 13:50:39 -0400 | [diff] [blame] | 38 | "@sentry/node": "^7.13.0", |
| 39 | "@sentry/tracing": "^7.13.0", |
idillon | d858c18 | 2022-09-16 13:18:26 -0400 | [diff] [blame] | 40 | "body-parser": "^1.20.0", |
| 41 | "connect-redis": "^6.1.3", |
Adrien Béraud | 3e41e4a | 2022-05-03 15:39:08 -0400 | [diff] [blame] | 42 | "cookie-parser": "^1.4.6", |
Adrien Béraud | 21921aa | 2022-09-18 13:50:39 -0400 | [diff] [blame] | 43 | "core-js": "^3.25.1", |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 44 | "cors": "^2.8.5", |
Adrien Béraud | 21921aa | 2022-09-18 13:50:39 -0400 | [diff] [blame] | 45 | "dotenv": "^16.0.2", |
idillon | d858c18 | 2022-09-16 13:18:26 -0400 | [diff] [blame] | 46 | "ejs": "^3.1.8", |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 47 | "env": "0.0.2", |
idillon | d858c18 | 2022-09-16 13:18:26 -0400 | [diff] [blame] | 48 | "express": "^4.18.1", |
| 49 | "express-session": "^1.17.3", |
| 50 | "passport": "^0.6.0", |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 51 | "passport-local": "^1.0.0", |
| 52 | "passport-session": "^1.0.2", |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 53 | "path": "^0.12.7", |
| 54 | "redis-url": "^1.2.1", |
Adrien Béraud | 21921aa | 2022-09-18 13:50:39 -0400 | [diff] [blame] | 55 | "socket.io": "^4.5.2" |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 56 | }, |
| 57 | "devDependencies": { |
simon | 7e00d61 | 2022-10-01 20:06:53 -0400 | [diff] [blame] | 58 | "@rollup/plugin-commonjs": "^22.0.2", |
| 59 | "@rollup/plugin-run": "^2.1.0", |
| 60 | "@rollup/plugin-typescript": "^8.5.0", |
idillon | d858c18 | 2022-09-16 13:18:26 -0400 | [diff] [blame] | 61 | "@svgr/webpack": "^6.3.1", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 62 | "@types/cookie-parser": "^1.4.3", |
| 63 | "@types/express": "^4.17.14", |
| 64 | "@types/express-session": "^1.17.5", |
| 65 | "@types/passport": "^1.0.11", |
| 66 | "@types/passport-local": "^1.0.34", |
| 67 | "@types/webpack-hot-middleware": "^2.25.6", |
Adrien Béraud | 2b3c2cd | 2022-09-18 14:24:33 -0400 | [diff] [blame] | 68 | "@typescript-eslint/eslint-plugin": "^5.37.0", |
| 69 | "@typescript-eslint/parser": "^5.37.0", |
simon | 42930d3 | 2022-10-14 14:36:54 -0400 | [diff] [blame] | 70 | "concurrently": "^7.4.0", |
Adrien Béraud | 21921aa | 2022-09-18 13:50:39 -0400 | [diff] [blame] | 71 | "cypress": "^10.8.0", |
Adrien Béraud | 2b3c2cd | 2022-09-18 14:24:33 -0400 | [diff] [blame] | 72 | "eslint": "^8.23.1", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 73 | "eslint-config-prettier": "^8.5.0", |
simon | 0e225ca | 2022-10-05 22:13:34 -0400 | [diff] [blame] | 74 | "eslint-plugin-header": "^3.1.1", |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 75 | "eslint-plugin-html": "^7.1.0", |
simon | 08a2316 | 2022-09-29 17:36:17 -0400 | [diff] [blame] | 76 | "eslint-plugin-simple-import-sort": "^8.0.0", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 77 | "eslint-plugin-unused-imports": "^2.0.0", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 78 | "lint-staged": "^13.0.3", |
Adrien Béraud | 21921aa | 2022-09-18 13:50:39 -0400 | [diff] [blame] | 79 | "llnode": "^4.0.0", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 80 | "prettier": "^2.7.1", |
Adrien Béraud | e5cad98 | 2021-06-07 10:05:50 -0400 | [diff] [blame] | 81 | "raw-loader": "^4.0.2", |
simon | 7e00d61 | 2022-10-01 20:06:53 -0400 | [diff] [blame] | 82 | "rollup": "^2.79.1", |
| 83 | "rollup-plugin-terser": "^7.0.2", |
simon | c7d5245 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 84 | "typescript": "^4.8.3", |
idillon | d858c18 | 2022-09-16 13:18:26 -0400 | [diff] [blame] | 85 | "webpack-dev-middleware": "^5.3.3", |
| 86 | "webpack-hot-middleware": "^2.25.2" |
simon | 42930d3 | 2022-10-14 14:36:54 -0400 | [diff] [blame] | 87 | }, |
| 88 | "workspaces": [ |
| 89 | "common", |
| 90 | "client", |
| 91 | "server" |
| 92 | ] |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 93 | } |