diff --git a/apps/policy-engine/project.json b/apps/policy-engine/project.json index 70b1d6be8..1321676f7 100644 --- a/apps/policy-engine/project.json +++ b/apps/policy-engine/project.json @@ -6,19 +6,14 @@ "targets": { "build": { "executor": "@nx/webpack:webpack", - "outputs": [ - "{options.outputPath}" - ], + "outputs": ["{options.outputPath}"], "defaultConfiguration": "production", "options": { "target": "node", "compiler": "tsc", "outputPath": "dist/apps/policy-engine", "main": "apps/policy-engine/src/main.ts", - "assets": [ - "apps/policy-engine/src/open-policy-agent/resource", - "apps/policy-engine/src/open-policy-agent/core/rego" - ], + "assets": ["apps/policy-engine/src/resource"], "tsConfig": "apps/policy-engine/tsconfig.app.json", "isolatedConfig": true, "webpackConfig": "apps/policy-engine/webpack.config.js" @@ -45,13 +40,9 @@ }, "lint": { "executor": "@nx/eslint:lint", - "outputs": [ - "{options.outputFile}" - ], + "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": [ - "apps/policy-engine/**/*.ts" - ] + "lintFilePatterns": ["apps/policy-engine/**/*.ts"] } }, "test:type": { @@ -62,9 +53,7 @@ }, "test:unit": { "executor": "@nx/jest:jest", - "outputs": [ - "{workspaceRoot}/coverage/{projectRoot}" - ], + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { "jestConfig": "apps/policy-engine/jest.unit.ts", "verbose": true @@ -72,9 +61,7 @@ }, "test:integration": { "executor": "@nx/jest:jest", - "outputs": [ - "{workspaceRoot}/coverage/{projectRoot}" - ], + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { "jestConfig": "apps/policy-engine/jest.integration.ts", "verbose": true, @@ -83,9 +70,7 @@ }, "test:e2e": { "executor": "@nx/jest:jest", - "outputs": [ - "{workspaceRoot}/coverage/{projectRoot}" - ], + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { "jestConfig": "apps/policy-engine/jest.e2e.ts", "verbose": true, diff --git a/apps/policy-engine/src/open-policy-agent/open-policy-agent.module.ts b/apps/policy-engine/src/open-policy-agent/open-policy-agent.module.ts index 8b1378917..e69de29bb 100644 --- a/apps/policy-engine/src/open-policy-agent/open-policy-agent.module.ts +++ b/apps/policy-engine/src/open-policy-agent/open-policy-agent.module.ts @@ -1 +0,0 @@ - diff --git a/apps/policy-engine/src/resource/open-policy-agent/rego-rules.template.hbs b/apps/policy-engine/src/resource/open-policy-agent/rego-rules.template.hbs deleted file mode 100644 index 7e27a48f2..000000000 --- a/apps/policy-engine/src/resource/open-policy-agent/rego-rules.template.hbs +++ /dev/null @@ -1,11 +0,0 @@ -package main - -{{#each policies}} - {{then}}[{"policyId": "{{id}}", "policyName": "{{name}}" }] = reason { - {{#each when}} - {{#criterion this}}{{/criterion}} - {{/each}} - {{#reason this}}{{/reason}} - } - -{{/each}} diff --git a/apps/policy-engine/src/resource/open-policy-agent/rego/rules.template.hbs b/apps/policy-engine/src/resource/open-policy-agent/rego/rules.template.hbs index 7e27a48f2..1059c45d9 100644 --- a/apps/policy-engine/src/resource/open-policy-agent/rego/rules.template.hbs +++ b/apps/policy-engine/src/resource/open-policy-agent/rego/rules.template.hbs @@ -8,4 +8,4 @@ package main {{#reason this}}{{/reason}} } -{{/each}} +{{/each}} \ No newline at end of file