Skip to content

Commit

Permalink
chore(frontend): include shared scripts in dev process
Browse files Browse the repository at this point in the history
now both dev and build also runs the shared package appropiate scripts
  • Loading branch information
horacioh committed Jan 19, 2023
1 parent 3590667 commit 7c7c6e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions desktop/app/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"build": {
"distDir": "../../frontend/app/dist",
"devPath": "http://localhost:5173",
"beforeDevCommand": "cd ../frontend/app && pnpm dev",
"beforeBuildCommand": "cd ../frontend/app && pnpm build",
"beforeDevCommand": "cd ../ && pnpm app:dev",
"beforeBuildCommand": "cd ../ && pnpm app:build",
"withGlobalTauri": true
},
"tauri": {
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
"private": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "pnpm run --recursive dev",
"build": "pnpm run --recursive build",
"app:dev": "concurrently -n SHARED,APP -c bgGreen,bgMagenta 'pnpm shared:dev' 'cd frontend/app && pnpm dev'",
"app:build": "pnpm shared:build && cd frontend/app && pnpm build",
"gw:dev": "concurrently -n SHARED,APP -c bgGreen,bgMagenta 'pnpm shared:dev' 'cd frontend/gateway && pnpm dev'",
"gw:build": "pnpm shared:build && cd frontend/gateway && pnpm build",
"shared:dev": "cd frontend/shared && pnpm dev",
"shared:build": "cd frontend/shared && pnpm build",
"all:build": "pnpm run --recursive build",
"lint": "pnpm run --recursive lint",
"format": "prettier --write --plugin-search-dir=. .",
"test": "pnpm run --recursive test",
Expand All @@ -21,6 +26,7 @@
"@typescript-eslint/eslint-plugin": "5.45.1",
"@typescript-eslint/parser": "5.45.1",
"@typescript-eslint/typescript-estree": "5.45.1",
"concurrently": "7.6.0",
"eslint": "8.29.0",
"eslint-config-preact": "1.3.0",
"eslint-config-prettier": "8.5.0",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c7c6e2

Please sign in to comment.