Skip to content

Commit

Permalink
have electron dev script wait for local server instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jwetzell authored and cpvalente committed Jul 3, 2024
1 parent 5c3989c commit 1f04016
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"electron-builder": "^24.13.3",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.0.3"
"prettier": "^3.0.3",
"wait-on": "^7.2.0"
},
"scripts": {
"postinstall": "",
"lint": "eslint . --quiet",
"lint-staged": "eslint",
"dev": "cross-env NODE_ENV=development electron .",
"dev": "wait-on http://localhost:3000 && cross-env NODE_ENV=development electron .",
"dist-win": "electron-builder --publish=never --x64 --win",
"dist-mac": "electron-builder --publish=never --mac",
"dist-mac:local": "electron-builder --publish=never --mac -c.mac.identity=null",
Expand Down
77 changes: 77 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 1f04016

Please sign in to comment.