Skip to content

Commit 2e615c4

Browse files
feat: create @devcycle/openfeature-angular-provider (#1028)
1 parent 66d1418 commit 2e615c4

15 files changed

+743
-5
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
[
4+
"@nx/js/babel",
5+
{
6+
"useBuiltIns": "usage"
7+
}
8+
]
9+
]
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*", "node_modules/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["*.ts", "*.tsx"],
11+
"rules": {}
12+
},
13+
{
14+
"files": ["*.js", "*.jsx"],
15+
"rules": {}
16+
}
17+
]
18+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# OpenFeature DevCycle Angular Web Provider
2+
3+
This library provides a Javascript implementation of the [OpenFeature](https://openfeature.dev/) Angular Provider interface for [OpenFeature Angular SDK](https://openfeature.dev/docs/reference/technologies/client/web/angular).
4+
5+
## Building
6+
7+
Run `yarn nx build openfeature-angular-provider` to build the library.
8+
9+
## Running Unit Tests
10+
11+
Run `yarn nx test openfeature-angular-provider` to execute the unit tests via [Jest](https://jestjs.io).
12+
13+
## Usage
14+
15+
See our [documentation](https://docs.devcycle.com/sdk/client-side-sdks/angular/angular-openfeature) for more information.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Need to disable this to keep the working jest mock
2+
// eslint-disable-next-line @nx/enforce-module-boundaries
3+
import { initializeDevCycle } from '@devcycle/js-client-sdk'
4+
5+
const { DevCycleClient } = jest.createMockFromModule<
6+
typeof import('@devcycle/js-client-sdk/src/Client')
7+
>('@devcycle/js-client-sdk/src/Client')
8+
9+
export { DevCycleClient, initializeDevCycle }

0 commit comments

Comments
 (0)