1.0.4 • Published 10 months ago
lit-preact-feature-flag v1.0.4
lit-preact-feature-flag
This is the Lit and Preact web components for the feature flags rendering options
Get started:
# Install dependencies
npm ci
# Create local environment variables setup
cp .env.example .env
# Build
npm run build
# Run development setup
npm run dev
# Clean development setup
npm run dev:clean
Usage:
<!-- For the Lit component -->
<script type="module" src="./lit-feature-flag-1.0.0.js"></script>
<!-- For the Preact component -->
<script type="module" src="./preact-feature-flag-1.0.0.js"></script>
<!-- provider = "local storage" | "cookie" | "http-header" | "openfeature|flagd" -->
<!-- options = URL of the flagd server for the provider = "openfeature|flagd" -->
<feature-flag feature="Awesome feature" provider="local storage" options="" id="featureFlag1">
<p>This is an awesome feature</p>
</feature-flag>