Skip to content

Commit 2aa298c

Browse files
committed
feat: add unleash server provider
Signed-off-by: Albert Ilagan <[email protected]>
1 parent 6609f58 commit 2aa298c

18 files changed

+1976
-1
lines changed

.release-please-manifest.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
"libs/providers/config-cat-web": "0.1.5",
2121
"libs/shared/config-cat-core": "0.1.1",
2222
"libs/providers/unleash-web": "0.1.1",
23-
"libs/providers/growthbook": "0.1.2"
23+
"libs/providers/growthbook": "0.1.2",
24+
"libs/providers/unleash": "0.1.0"
2425
}

libs/providers/unleash/.eslintrc.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extends": ["../../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
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+
"files": ["*.json"],
19+
"parser": "jsonc-eslint-parser",
20+
"rules": {
21+
"@nx/dependency-checks": [
22+
"error",
23+
{
24+
"ignoredFiles": ["{projectRoot}/eslint.config.{js,cjs,mjs}"]
25+
}
26+
]
27+
}
28+
}
29+
]
30+
}

libs/providers/unleash/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# unleash Provider
2+
3+
## Installation
4+
5+
```
6+
$ npm install @openfeature/unleash-provider
7+
```
8+
9+
## Building
10+
11+
Run `nx package providers-unleash` to build the library.
12+
13+
## Running unit tests
14+
15+
Run `nx test providers-unleash` to execute the unit tests via [Jest](https://jestjs.io).
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [["minify", { "builtIns": false }]]
3+
}

libs/providers/unleash/jest.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default {
2+
displayName: 'providers-unleash',
3+
preset: '../../../jest.preset.js',
4+
transform: {
5+
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
6+
},
7+
moduleFileExtensions: ['ts', 'js', 'html'],
8+
coverageDirectory: '../../../coverage/libs/providers/unleash-web',
9+
};

0 commit comments

Comments
 (0)