Skip to content

Commit 1f5260a

Browse files
committed
chore: configure pnpm workspaces
1 parent 1e2bec8 commit 1f5260a

File tree

7 files changed

+6465
-305
lines changed

7 files changed

+6465
-305
lines changed

apps/backend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build": "nest build",
1010
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
1111
"start": "nest start",
12+
"dev": "nest start --watch --preserveWatchOutput",
1213
"start:dev": "nest start --watch",
1314
"start:debug": "nest start --debug --watch",
1415
"start:prod": "node dist/main",

apps/frontend/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ import react from '@vitejs/plugin-react'
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6+
server: {
7+
port: 3001
8+
},
9+
clearScreen: false,
610
plugins: [react()],
711
})

nx.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3-
"defaultBase": "main"
4-
}
3+
"defaultBase": "main",
4+
"targetDefaults": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"cache": true
8+
},
9+
"dev": {
10+
"dependsOn": ["^build"]
11+
}
12+
},
13+
"useDaemonProcess": false
14+
}

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"name": "leq",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
3+
"version": "0.0.0",
64
"private": true,
75
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 1"
6+
"build": "pnpm exec nx run-many --nx-bail --target=build --parallel --output-style stream",
7+
"clean": "git clean -fdx",
8+
"dev": "pnpm exec nx run-many --nx-bail --target=dev --parallel --output-style stream"
99
},
1010
"keywords": [],
1111
"author": "openscript GmbH",
1212
"license": "MIT",
1313
"devDependencies": {
1414
"nx": "19.7.3"
15-
},
16-
"nx": {}
17-
}
15+
}
16+
}

packages/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)