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", |
Misha Krieger-Raynauld | 173fbba | 2022-11-16 14:10:38 -0500 | [diff] [blame] | 4 | "workspaces": [ |
| 5 | "common", |
| 6 | "client", |
| 7 | "server" |
| 8 | ], |
simon | c7d5245 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 9 | "scripts": { |
Misha Krieger-Raynauld | 173fbba | 2022-11-16 14:10:38 -0500 | [diff] [blame] | 10 | "start": "concurrently \"npm start --workspace server\" \"npm start --workspace client\"", |
| 11 | "start:prod": "concurrently \"npm run start:prod --workspace server\" \"npm run start:prod --workspace client\"", |
| 12 | "build": "npm run build --workspaces", |
| 13 | "clean": "npm run clean --workspaces", |
simon | 42930d3 | 2022-10-14 14:36:54 -0400 | [diff] [blame] | 14 | "clean:all": "npm run clean && find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +", |
Misha Krieger-Raynauld | 173fbba | 2022-11-16 14:10:38 -0500 | [diff] [blame] | 15 | "lint": "npm run lint --workspaces", |
| 16 | "lint:fix": "npm run lint:fix --workspaces", |
| 17 | "format": "npm run format --workspaces", |
| 18 | "format:check": "npm run format:check --workspaces", |
Misha Krieger-Raynauld | 86917ea | 2022-11-20 14:21:02 -0500 | [diff] [blame] | 19 | "prepare": "if [ -e '.git' ]; then git config core.hooksPath .hooks; fi" |
simon | c7d5245 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 20 | }, |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 21 | "lint-staged": { |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 22 | "**/*.{ts,tsx,js,jsx,cjs,html}": [ |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 23 | "eslint --fix", |
| 24 | "prettier --write" |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 25 | ], |
simon | 73ef58d | 2022-10-27 00:25:55 -0400 | [diff] [blame] | 26 | "*.{json,md,scss}": [ |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 27 | "prettier --write" |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 28 | ] |
| 29 | }, |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 30 | "devDependencies": { |
Misha Krieger-Raynauld | 86917ea | 2022-11-20 14:21:02 -0500 | [diff] [blame] | 31 | "@typescript-eslint/eslint-plugin": "^5.43.0", |
| 32 | "@typescript-eslint/parser": "^5.43.0", |
simon | 42930d3 | 2022-10-14 14:36:54 -0400 | [diff] [blame] | 33 | "concurrently": "^7.4.0", |
Adrien BĂ©raud | 2b3c2cd | 2022-09-18 14:24:33 -0400 | [diff] [blame] | 34 | "eslint": "^8.23.1", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 35 | "eslint-config-prettier": "^8.5.0", |
simon | 0e225ca | 2022-10-05 22:13:34 -0400 | [diff] [blame] | 36 | "eslint-plugin-header": "^3.1.1", |
simon | d8ca2f2 | 2022-10-11 23:30:55 -0400 | [diff] [blame] | 37 | "eslint-plugin-html": "^7.1.0", |
simon | 08a2316 | 2022-09-29 17:36:17 -0400 | [diff] [blame] | 38 | "eslint-plugin-simple-import-sort": "^8.0.0", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 39 | "eslint-plugin-unused-imports": "^2.0.0", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 40 | "lint-staged": "^13.0.3", |
Misha Krieger-Raynauld | 173fbba | 2022-11-16 14:10:38 -0500 | [diff] [blame] | 41 | "prettier": "^2.7.1" |
| 42 | } |
Larbi Gharib | e9af973 | 2021-03-31 15:08:01 +0100 | [diff] [blame] | 43 | } |