Skip to content

Commit 90f8e82

Browse files
authored
Update package.json
fix: ensure Browsersync starts after Flask server Signed-off-by: Michael Zephyr <mzephyr@nvidia.com>
1 parent cc17e44 commit 90f8e82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"build:tailwind": "npx tailwindcss -i web/static/tailwind-custom.css -o web/static/styles.compiled.css",
99
"watch:tailwind": "npx tailwindcss -i web/static/tailwind-custom.css -o web/static/styles.compiled.css --watch",
1010
"dev:server": "nodemon --watch servers --watch utils --watch agents --ext py --exec \"python servers/web_server.py --host ${FLASK_HOST:-127.0.0.1} --port ${FLASK_PORT:-8050}\"",
11-
"dev:sync": "browser-sync start --proxy '${FLASK_HOST:-localhost}:${FLASK_PORT:-8050}' --host '${FLASK_HOST:-localhost}' --port 3000 --files 'web/static/*.css, web/static/*.js, web/src/**/*.vue, web/src/**/*.js' --no-notify --no-open",
12-
"dev:web": "concurrently \"npm run watch:tailwind\" \"npm run dev:server\" \"npm run dev:sync\"",
13-
"dev:full": "concurrently \"npm run watch:tailwind\" \"./scripts/start_app.sh\" \"npm run dev:sync\"",
11+
"dev:sync": "browser-sync start --proxy ${FLASK_HOST:-localhost}:${FLASK_PORT:-8050} --host ${FLASK_HOST:-localhost} --port 3000 --files 'web/static/*.css, web/static/*.js, web/src/**/*.vue, web/src/**/*.js' --no-notify --no-open",
12+
"dev:web": "concurrently \"npm run watch:tailwind\" \"npm run dev:server\" \"wait-on http://${FLASK_HOST:-localhost}:${FLASK_PORT:-8050} && npm run dev:sync\"",
13+
"dev:full": "concurrently \"npm run watch:tailwind\" \"./scripts/start_app.sh\" \"wait-on http://${FLASK_HOST:-localhost}:${FLASK_PORT:-8050} && npm run dev:sync\"",
1414
"dev": "./scripts/dev.sh",
1515
"start": "npm run build:tailwind && ./scripts/start_app.sh"
1616
},
@@ -25,7 +25,8 @@
2525
"concurrently": "^8.2.2",
2626
"nodemon": "^3.1.9",
2727
"tailwindcss": "^3.4.1",
28-
"vite": "^6.2.2"
28+
"vite": "^6.2.2",
29+
"wait-on": "^8.0.3"
2930
},
3031
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
3132
}

0 commit comments

Comments
 (0)