From 7bdf3a32e89d1b35871be0198d6b6d511a7e7679 Mon Sep 17 00:00:00 2001 From: Bruno FS Ciconelle Date: Tue, 5 Nov 2024 13:59:34 -0300 Subject: [PATCH] chore: add a utility script to make development easier npm run start:using-server will serve the development UI properly wired to a running instance of quipucords server. Default configuration points to quipucords-installer defaults, and can be customized with QUIPUCORDS_SERVER_* variables. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 359cd8c3..f1d1de17 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "build:pre": "bash ./scripts/pre.sh", "release": "changelog --link-url https://github.com/quipucords/quipucords-ui.git", "start": "export PROTOCOL=http; export HOST=127.0.0.1; export PORT=${PORT:-3000}; export MOCK_PORT=${MOCK_PORT:-3030}; run-p -l api:dev start:js start:open", + "start:using-server": "export PROTOCOL=${QUIPUCORDS_SERVER_PROTOCOL:-https}; export HOST=${QUIPUCORDS_SERVER_HOST:-127.0.0.1}; export PORT=${PORT:-3000}; export MOCK_PORT=${QUIPUCORDS_SERVER_PORT:-9443}; run-p -l start:js start:open", "start:js": "export NODE_ENV=development; weldable -l ts -x ./config/webpack.dev.js", "start:open": "xdg-open $PROTOCOL://$HOST:$PORT/ || open $PROTOCOL://$HOST:$PORT/", "start:stage": "export PROTOCOL=http; export HOST=127.0.0.1; export PORT=${PORT:-3000}; export MOCK_PORT=${MOCK_PORT:-8000}; run-p -l api:stage start:js start:open",