|
83 | 83 | "build:local-packages": "yarn workspace @upswyng/types build && yarn workspace @upswyng/common build", |
84 | 84 | "build:server": "yarn build:local-packages && yarn workspace @upswyng/server build", |
85 | 85 | "build:web": "yarn build:local-packages && yarn workspace @upswyng/web build", |
86 | | - "build:local-db": "docker-compose up --build -d && npm run restore:db", |
| 86 | + "build:local-db": "docker compose up --build -d && mongorestore --port 27018 --username upswyng-dev-user --password upswyng123 -d upswyng-dev ./packages/server/localdb/mongodump", |
87 | 87 | "restore:db": "mongorestore --port 27018 --username upswyng-dev-user --password upswyng123 -d upswyng-dev ./packages/server/localdb/mongodump", |
88 | 88 | "clean": "node clean.js", |
| 89 | + "common": "yarn workspace @upswyng/common", |
89 | 90 | "reset": "node clean.js --reset && docker compose down -v", |
90 | 91 | "heroku-postbuild": "yarn build:web && yarn build:server", |
91 | 92 | "lint": "tsc --noEmit && eslint \"packages/**/src/**/*.{js,jsx,ts,tsx}\" --fix", |
92 | 93 | "lint:ci": "tsc --noEmit && eslint \"packages/**/src/**/*.{js,jsx,ts,tsx}\" --quiet", |
93 | | - "test": "concurrently -n common,server -c yellow,blue \"yarn workspace @upswyng/common test:unit\" \"yarn workspace @upswyng/server test\" && yarn workspace @upswyng/web test", |
94 | | - "test:ci": "concurrently -n common,server -c yellow,blue \"yarn workspace @upswyng/common test:unit\" \"yarn workspace @upswyng/server test\" --kill-others-on-fail && yarn workspace @upswyng/web test", |
95 | | - "start:local": "./start_local.sh" |
| 94 | + "test": "concurrently -n common,server -c yellow,blue \"yarn common test:unit\" \"yarn server test\" && yarn web test", |
| 95 | + "test:ci": "concurrently -n common,server -c yellow,blue \"yarn common test:unit\" \"yarn server test\" --kill-others-on-fail && yarn web test", |
| 96 | + "start:local": "./start_local.sh", |
| 97 | + "server": "yarn workspace @upswyng/server", |
| 98 | + "types": "yarn workspace @upswyng/types", |
| 99 | + "web": "yarn workspace @upswyng/web" |
96 | 100 | }, |
97 | 101 | "version": "0.1.0", |
98 | 102 | "workspaces": [ |
|
0 commit comments