The LaunchDarkly toolbar is a React component that provides a developer-friendly mechanism for interacting with LaunchDarkly during development.
This is a monorepo containing the following packages:
- @launchdarkly/toolbar: The main toolbar component package
- demo: Demo application showcasing the toolbar
For usage instructions and API documentation, read the toolbar package README and the LaunchDarkly documentation.
Before you set up the toolbar, you must have the following prerequisites:
- Node.js 18+
- pnpm
To set up the toolbar:
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run demo in development mode
pnpm demo
# Run toolbar in watch mode
pnpm dev
To test the toolbar:
# Run unit tests
pnpm test
# Run e2e tests (local)
pnpm test:e2e:local
# Run e2e tests (CI)
pnpm test:e2e:ci
The following scripts are available:
pnpm dev
: Build toolbar in watch modepnpm demo
: Run demo applicationpnpm demo:mock
: Run demo with mock flagspnpm build
: Build toolbar for productionpnpm test
: Run unit testspnpm test:e2e:local
; Run E2E tests (local)pnpm test:e2e:ci
: Run E2E tests (CI)pnpm lint
: Run lintingpnpm format
: Format code with Prettierpnpm storybook
: Start Storybook
To learn about development guidelines and contribution instructions, read CONTRIBUTING.md.
Apache-2.0