|
| 1 | +{ |
| 2 | + "$schema": "../../../node_modules/nx/schemas/project-schema.json", |
| 3 | + "sourceRoot": "libs/providers/flagd-web/src", |
| 4 | + "projectType": "library", |
| 5 | + "targets": { |
| 6 | + "publish": { |
| 7 | + "executor": "@nrwl/workspace:run-commands", |
| 8 | + "options": { |
| 9 | + "command": "npm run publish-if-not-exists", |
| 10 | + "cwd": "dist/libs/providers/flagd-web" |
| 11 | + }, |
| 12 | + "dependsOn": [ |
| 13 | + { |
| 14 | + "projects": "self", |
| 15 | + "target": "package" |
| 16 | + } |
| 17 | + ] |
| 18 | + }, |
| 19 | + "lint": { |
| 20 | + "executor": "@nrwl/linter:eslint", |
| 21 | + "outputs": ["{options.outputFile}"], |
| 22 | + "options": { |
| 23 | + "lintFilePatterns": ["libs/providers/flagd-web/**/*.ts"] |
| 24 | + }, |
| 25 | + "dependsOn": [ |
| 26 | + { |
| 27 | + "projects": "self", |
| 28 | + "target": "generate" |
| 29 | + } |
| 30 | + ] |
| 31 | + }, |
| 32 | + "test": { |
| 33 | + "executor": "@nrwl/jest:jest", |
| 34 | + "outputs": ["coverage/libs/providers/flagd-web"], |
| 35 | + "options": { |
| 36 | + "jestConfig": "libs/providers/flagd-web/jest.config.ts", |
| 37 | + "passWithNoTests": true |
| 38 | + }, |
| 39 | + "dependsOn": [ |
| 40 | + { |
| 41 | + "projects": "self", |
| 42 | + "target": "generate" |
| 43 | + } |
| 44 | + ] |
| 45 | + }, |
| 46 | + "generate": { |
| 47 | + "executor": "@nrwl/workspace:run-commands", |
| 48 | + "options": { |
| 49 | + "commands": [ |
| 50 | + "git submodule update --init --recursive", |
| 51 | + "rm -f -r ./src/proto", |
| 52 | + "cd schemas && buf generate buf.build/open-feature/flagd --template protobuf/buf.gen.ts-connect.yaml", |
| 53 | + "mv -v ./proto ./src" |
| 54 | + ], |
| 55 | + "cwd": "libs/providers/flagd-web", |
| 56 | + "parallel": false |
| 57 | + } |
| 58 | + }, |
| 59 | + "package": { |
| 60 | + "executor": "@nrwl/web:rollup", |
| 61 | + "outputs": ["{options.outputPath}"], |
| 62 | + "options": { |
| 63 | + "buildableProjectDepsInPackageJsonType": "dependencies", |
| 64 | + "project": "libs/providers/flagd-web/package.json", |
| 65 | + "outputPath": "dist/libs/providers/flagd-web", |
| 66 | + "entryFile": "libs/providers/flagd-web/src/index.ts", |
| 67 | + "tsConfig": "libs/providers/flagd-web/tsconfig.lib.json", |
| 68 | + "compiler": "babel", |
| 69 | + "umdName": "flagd-web", |
| 70 | + "external": ["typescript"], |
| 71 | + "format": ["cjs", "esm"], |
| 72 | + "assets": [ |
| 73 | + { |
| 74 | + "glob": "LICENSE", |
| 75 | + "input": "./", |
| 76 | + "output": "./" |
| 77 | + }, |
| 78 | + { |
| 79 | + "glob": "README.md", |
| 80 | + "input": "./libs/providers/flagd-web", |
| 81 | + "output": "./" |
| 82 | + } |
| 83 | + ] |
| 84 | + }, |
| 85 | + "dependsOn": [ |
| 86 | + { |
| 87 | + "projects": "self", |
| 88 | + "target": "generate" |
| 89 | + } |
| 90 | + ] |
| 91 | + } |
| 92 | + }, |
| 93 | + "tags": [] |
| 94 | +} |
0 commit comments