Skip to content

Commit

Permalink
Add Vue 3 support with vue-demi (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-black authored Jan 7, 2022
1 parent 406b985 commit ef36a99
Show file tree
Hide file tree
Showing 14 changed files with 26,637 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
key: ${{ runner.os }}-build-${{env.INSTALL_CACHE_NAME}}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-build-${{env.INSTALL_CACHE_NAME}}-
- name: Testing
run: npm run test:unit
run: npm run test:unit:2 && npm run test:unit:3
- name: Sending to Code Climate
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Test Coverage](https://api.codeclimate.com/v1/badges/d87da39dfb63340702bd/test_coverage)](https://codeclimate.com/github/dashhudson/vue-ld/test_coverage) [![npm version](https://img.shields.io/npm/v/vue-ld?color=%23d6b034)](https://www.npmjs.com/package/vue-ld) [![Last Commit](https://img.shields.io/github/last-commit/dashhudson/vue-ld?color=%23d6b034)](https://github.com/dashhudson/vue-ld/graphs/commit-activity)
[![Licence](https://img.shields.io/github/license/dashhudson/vue-ld?color=%23d6b034)](https://github.com/dashhudson/vue-ld/blob/dev/LICENSE.txt) [![Stars](https://img.shields.io/github/stars/dashhudson/vue-ld?color=%23d6b034&logoColor=%23d6b034)](https://github.com/dashhudson/vue-ld)

A simple wrapper around the [js-client-sdk](https://github.com/launchdarkly/js-client-sdk) that provides observable feature flags, a ready state to ensure all feature flags are up to date, and routing utilities.
A simple wrapper around the [js-client-sdk](https://github.com/launchdarkly/js-client-sdk) that provides observable feature flags, a ready state to ensure all feature flags are up to date, and routing utilities. Compatabile with both Vue 2 and Vue 3 via [vue-demi](https://github.com/vueuse/vue-demi).

## Usage

Expand All @@ -14,6 +14,7 @@ A simple wrapper around the [js-client-sdk](https://github.com/launchdarkly/js-c
```bash
$ npm install --save vue-ld launchdarkly-js-client-sdk
```
- Requires `@vue/composition-api` for Vue 2 support.

Main.js

Expand Down
Loading

0 comments on commit ef36a99

Please sign in to comment.