Skip to content

Commit

Permalink
chore: add a utility script to make development easier
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bruno-fs committed Nov 6, 2024
1 parent 5fb3a2d commit 7bdf3a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7bdf3a3

Please sign in to comment.