Skip to content

Commit b75c352

Browse files
authored
chore(repo): 🏗️ set min node/pnpm versions (#92)
1 parent 117b6e2 commit b75c352

File tree

12 files changed

+65
-10
lines changed

12 files changed

+65
-10
lines changed

README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ Instead, we're detaching from its legacy underpinnings, to build something moder
7878
_p.s. Things will change over time!_
7979

8080
## Running Locally
81+
8182
To get a local copy up and running, follow these simple steps.
8283

8384
### Prerequisites
8485

8586
Here is what you need to be able to run UnInbox locally.
8687

8788
- Node.js (Version: >=20.x)
89+
- NVM (Node Version Manager) (see https://github.com/nvm-sh/nvm)
8890
- Docker
8991
- pnpm (see https://pnpm.io/installation)
9092

@@ -105,38 +107,47 @@ Here is what you need to be able to run UnInbox locally.
105107
cd UnInbox
106108
```
107109

108-
3. Install packages with pnpm
110+
3. Check and install the correct node/pnpm versions
111+
112+
```sh
113+
nvm install
114+
```
115+
116+
4. Install packages with pnpm
109117

110118
```sh
111119
pnpm i
112120
```
113121

114-
4. Set up your `.env.local` file
122+
5. Set up your `.env.local` file
115123

116124
- Duplicate `.env.local.example` to `.env.local`. This file is already pre-configured for use with the local docker containers
117125

118-
mac
126+
mac
127+
119128
```sh
120129
cp .env.local.example .env.local
121130
```
131+
122132
windows
133+
123134
```sh
124135
copy .env.local.example .env.local
125136
```
126137

127-
5. Start the docker containers
138+
6. Start the docker containers
128139

129140
```sh
130141
pnpm run docker:up
131142
```
132-
133-
6. Sync the schema with the database:
134143

135-
```sh
144+
7. Sync the schema with the database:
145+
146+
```sh
136147
pnpm run db:push
137-
```
148+
```
138149

139-
7. In another terminal window, start the app and all services
150+
8. In another terminal window, start the app and all services
140151

141152
```sh
142153
pnpm run dev

apps/landing-page/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@uninbox/landing",
33
"private": true,
44
"type": "module",
5+
"engines": {
6+
"node": ">=20",
7+
"pnpm": ">=8"
8+
},
59
"scripts": {
610
"build": "nuxt build",
711
"dev": "PORT=3500 nuxt dev",
@@ -36,4 +40,4 @@
3640
"overrides": {
3741
"vue": "3.3.13"
3842
}
39-
}
43+
}

apps/mail-bridge/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@uninbox/mail-bridge",
33
"private": true,
44
"types": "types.ts",
5+
"engines": {
6+
"node": ">=20",
7+
"pnpm": ">=8"
8+
},
59
"scripts": {
610
"dev": "PORT=3100 npx nitropack dev",
711
"build": "npx nitropack build",

apps/storage/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@uninbox/storage",
33
"private": true,
44
"types": "types.ts",
5+
"engines": {
6+
"node": ">=20",
7+
"pnpm": ">=8"
8+
},
59
"scripts": {
610
"dev": "PORT=3200 npx nitropack dev",
711
"build": "npx nitropack build",

apps/web-app/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@uninbox/web-app",
33
"private": true,
44
"type": "module",
5+
"engines": {
6+
"node": ">=20",
7+
"pnpm": ">=8"
8+
},
59
"scripts": {
610
"build": "nuxt build",
711
"dev": "PORT=3000 nuxt dev --host",

ee/apps/billing/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"license": "COMMERCIAL",
44
"private": true,
55
"types": "types.ts",
6+
"engines": {
7+
"node": ">=20",
8+
"pnpm": ">=8"
9+
},
610
"scripts": {
711
"ee:dev": "PORT=3800 npx nitropack dev",
812
"ee:build": "npx nitropack build",

ee/packages/types/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@uninbox-ee/types",
33
"private": true,
44
"version": "1.0.0",
5+
"engines": {
6+
"node": ">=20",
7+
"pnpm": ">=8"
8+
},
59
"description": "",
610
"main": "index.ts",
711
"types": "index.ts",

packages/database/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"private": true,
44
"types": "./index.ts",
55
"main": "index.js",
6+
"engines": {
7+
"node": ">=20",
8+
"pnpm": ">=8"
9+
},
610
"scripts": {
711
"db:generate": "drizzle-kit generate:mysql --config=drizzle.config.ts",
812
"db:push": "drizzle-kit push:mysql --config=drizzle.config.ts",

packages/postal-puppet/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
"files": [
3030
"dist"
3131
],
32+
"engines": {
33+
"node": ">=20",
34+
"pnpm": ">=8"
35+
},
3236
"scripts": {
3337
"build:puppet": "unbuild",
3438
"dev:puppet": "unbuild --stub",

packages/trpc/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"private": true,
55
"description": "",
66
"main": "index.js",
7+
"engines": {
8+
"node": ">=20",
9+
"pnpm": ">=8"
10+
},
711
"scripts": {
812
"test": "echo \"Error: no test specified\" && exit 1"
913
},

packages/types/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"description": "",
66
"main": "index.ts",
77
"types": "index.ts",
8+
"engines": {
9+
"node": ">=20",
10+
"pnpm": ">=8"
11+
},
812
"devDependencies": {
913
"typescript": "^5.3.3"
1014
}

packages/utils/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"keywords": [],
99
"author": "",
1010
"license": "ISC",
11+
"engines": {
12+
"node": ">=20",
13+
"pnpm": ">=8"
14+
},
1115
"dependencies": {
1216
"nanoid": "^5.0.6",
1317
"zod": "^3.22.4"

0 commit comments

Comments
 (0)