@vltpkg/gui
v1.0.0-rc.18
Published
Look under the hood of a vlt install in HD
Downloads
170
Keywords
Readme
@vltpkg/gui
The vlt gui for visualizing dependencies in your project.
Documentation
Development
Create a .env file in the src/gui directory with your development
settings:
# Enable live reload for development
__VLT_INTERNAL_LIVE_RELOAD=1
# Optional: Simulate hosted environment (useful for testing auth and other hosted-only features)
# __VLT_FORCE_HOSTED=1To start the esbuild dev server, run the gui watch script:
$ pnpm -F gui watchIn a separate terminal, run the app:
$ ./scripts/bins/vlt guiChanges to src/gui will cause open browser windows to reload().
Note:
Environment variables are loaded from your
.envfile and injected at build time. If the esbuild dev server is not running, then requests will fallback to the static asset like normal and message will be logged in the browser.
__VLT_INTERNAL_LIVE_RELOADhas no effect on production builds. The code is stripped by esbuild from both the GUI and the CLI.__VLT_FORCE_HOSTEDforces the application to behave as if it's running in a hosted environment, disabling local GUI server features. This has no effect on production builds where hosted mode is determined automatically based on the hostname and port.
See the contributing guide for more information on how to build and develop the various workspaces.
License
This project is licensed under the Functional Source License (FSL-1.1-MIT).
