Skip to content

Commit 507b549

Browse files
authored
Merge pull request #3 from Zaimwa9/feat/add-flagsmith-server-sdk
feat: add flagsmith server sdk
2 parents 4a359b9 + ceaff5e commit 507b549

File tree

11 files changed

+825
-47
lines changed

11 files changed

+825
-47
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'providers-flagsmith',
4+
preset: '../../../jest.preset.js',
5+
transform: {
6+
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
7+
},
8+
moduleFileExtensions: ['ts', 'js', 'html'],
9+
coverageDirectory: '../../../coverage/libs/providers/flagsmith',
10+
};
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"name": "providers-flagsmith",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "libs/providers/flagsmith/src",
5+
"projectType": "library",
6+
"targets": {
7+
"publish": {
8+
"executor": "nx:run-commands",
9+
"options": {
10+
"command": "npm run publish-if-not-exists",
11+
"cwd": "dist/libs/providers/flagsmith"
12+
},
13+
"dependsOn": [
14+
{
15+
"projects": "self",
16+
"target": "package"
17+
}
18+
]
19+
},
20+
"lint": {
21+
"executor": "@nx/eslint:lint",
22+
"outputs": ["{options.outputFile}"]
23+
},
24+
"test": {
25+
"executor": "@nx/jest:jest",
26+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
27+
"options": {
28+
"jestConfig": "libs/providers/flagsmith/jest.config.ts"
29+
}
30+
},
31+
"package": {
32+
"executor": "@nx/rollup:rollup",
33+
"outputs": ["{options.outputPath}"],
34+
"options": {
35+
"project": "libs/providers/flagsmith/package.json",
36+
"outputPath": "dist/libs/providers/flagsmith",
37+
"entryFile": "libs/providers/flagsmith/src/index.ts",
38+
"tsConfig": "libs/providers/flagsmith/tsconfig.lib.json",
39+
"compiler": "tsc",
40+
"generateExportsField": true,
41+
"umdName": "flagsmith",
42+
"external": "all",
43+
"format": ["cjs", "esm"],
44+
"assets": [
45+
{
46+
"glob": "package.json",
47+
"input": "./assets",
48+
"output": "./src/"
49+
},
50+
{
51+
"glob": "LICENSE",
52+
"input": "./",
53+
"output": "./"
54+
},
55+
{
56+
"glob": "README.md",
57+
"input": "./libs/providers/flagsmith",
58+
"output": "./"
59+
}
60+
]
61+
}
62+
}
63+
},
64+
"tags": []
65+
}

0 commit comments

Comments
 (0)