From b02cc74fb4c73da9f5734476ecef1961d14cc0d7 Mon Sep 17 00:00:00 2001 From: Konstantin Tsabolov <konstantin.tsabolov@spherity.com> Date: Thu, 25 Jan 2024 21:36:44 +0100 Subject: [PATCH] chore: cleanup up supporting files --- apps/connection-manager/package.json | 4 +--- apps/connection-manager/tsconfig.json | 17 +---------------- apps/credential-manager/.env.example | 11 +++++------ apps/credential-manager/package.json | 13 +++---------- apps/proof-manager/.env.example | 16 +++++----------- apps/proof-manager/package.json | 10 ++-------- apps/proof-manager/tsconfig.json | 17 +---------------- apps/schema-manager/.env.example | 6 ++++++ apps/schema-manager/package.json | 13 +++---------- apps/shared/package.json | 12 +++--------- apps/ssi-abstraction/package.json | 14 ++++---------- tsconfig.json | 1 - 12 files changed, 34 insertions(+), 100 deletions(-) create mode 100644 apps/schema-manager/.env.example diff --git a/apps/connection-manager/package.json b/apps/connection-manager/package.json index 965cec9..8441800 100644 --- a/apps/connection-manager/package.json +++ b/apps/connection-manager/package.json @@ -11,9 +11,7 @@ "scripts": { "clean": "rimraf dist coverage *.tsbuildinfo", "prebuild": "pnpm clean", - "build": "nest build", - "prebuild:production": "pnpm clean", - "build:production": "nest build -p tsconfig.production.json", + "build": "nest build -p tsconfig.production.json", "start": "nest start --watch --preserveWatchOutput", "test": "jest" }, diff --git a/apps/connection-manager/tsconfig.json b/apps/connection-manager/tsconfig.json index 9329bd9..4082f16 100644 --- a/apps/connection-manager/tsconfig.json +++ b/apps/connection-manager/tsconfig.json @@ -1,18 +1,3 @@ { - "extends": "../../tsconfig.json", - - "compilerOptions": { - "composite": true, - "removeComments": false, - "declaration": true, - "sourceMap": true, - - "incremental": true, - - "outDir": "./dist", - "baseUrl": "./", - "rootDir": "./src" - }, - "include": ["src"], - "exclude": ["node_modules", "./dist/**/*"] + "extends": "../../tsconfig.json" } diff --git a/apps/credential-manager/.env.example b/apps/credential-manager/.env.example index af5dfef..81e338c 100644 --- a/apps/credential-manager/.env.example +++ b/apps/credential-manager/.env.example @@ -1,7 +1,6 @@ HTTP_HOST=0.0.0.0 -HTTP_PORT=3011 - -NATS_URL=nats://nats:4222 -NATS_MONITORING_URL=nats://nats:8222 - -SSI_AGENT_URL=http://ssi:3010 +HTTP_PORT=3003 +NATS_URL=nats://localhost:4222 +NATS_USER=nats_user +NATS_PASSWORD= +NATS_MONITORING_URL=http://localhost:8222 diff --git a/apps/credential-manager/package.json b/apps/credential-manager/package.json index 5a62e65..f245d88 100644 --- a/apps/credential-manager/package.json +++ b/apps/credential-manager/package.json @@ -12,16 +12,9 @@ "scripts": { "clean": "rimraf dist coverage *.tsbuildinfo", "prebuild": "pnpm clean", - "build": "nest build", - "prebuild:production": "pnpm clean", - "build:production": "nest build -p tsconfig.production.json", - "start": "nest start", - "start:dev": "nest start --watch --preserveWatchOutput", - "test": "jest", - "test:watch": "jest --watch", - "test:cov": "jest --coverage", - "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", - "test:e2e": "jest --config ./test/jest.config.js" + "build": "nest build -p tsconfig.production.json", + "start": "nest start --watch --preserveWatchOutput", + "test": "jest" }, "dependencies": { "@nestjs/common": "^10.3.0", diff --git a/apps/proof-manager/.env.example b/apps/proof-manager/.env.example index 1bf339c..f56f879 100644 --- a/apps/proof-manager/.env.example +++ b/apps/proof-manager/.env.example @@ -1,12 +1,6 @@ -PORT=3007 -PROOF_MANAGER_URL=http://localhost:3007 -DATABASE_URL=postgresql://root:password@localhost:5432/postgres?schema=proof -ECSURL=http://localhost:9200/ -ACCEPT_PRESENTATION_CONFIG=AUTO +HTTP_HOST=0.0.0.0 +HTTP_PORT=3004 NATS_URL=nats://localhost:4222 -AGENT_URL=http://localhost:3010 -DIDCOMM_URL=http://localhost:3009 -USE_AUTH=false -OAUTH_CLIENT_ID=clientid -OAUTH_CLIENT_SECRET=clientsecret -OAUTH_TOKEN_URL=https://tokenurl +NATS_USER=nats_user +NATS_PASSWORD= +NATS_MONITORING_URL=http://localhost:8222 diff --git a/apps/proof-manager/package.json b/apps/proof-manager/package.json index f654e4a..931642d 100644 --- a/apps/proof-manager/package.json +++ b/apps/proof-manager/package.json @@ -9,15 +9,9 @@ "scripts": { "clean": "rimraf dist coverage *.tsbuildinfo", "prebuild": "pnpm clean", - "build": "nest build", - "prebuild:production": "pnpm clean", - "build:production": "nest build -p tsconfig.production.json", + "build": "nest build -p tsconfig.production.json", "start": "nest start --watch --preserveWatchOutput", - "test": "jest", - "test:watch": "jest --watch", - "test:cov": "jest --coverage", - "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", - "test:e2e": "jest --config ./test/jest.config.js" + "test": "jest" }, "dependencies": { "@nestjs/common": "^10.3.0", diff --git a/apps/proof-manager/tsconfig.json b/apps/proof-manager/tsconfig.json index 9329bd9..4082f16 100644 --- a/apps/proof-manager/tsconfig.json +++ b/apps/proof-manager/tsconfig.json @@ -1,18 +1,3 @@ { - "extends": "../../tsconfig.json", - - "compilerOptions": { - "composite": true, - "removeComments": false, - "declaration": true, - "sourceMap": true, - - "incremental": true, - - "outDir": "./dist", - "baseUrl": "./", - "rootDir": "./src" - }, - "include": ["src"], - "exclude": ["node_modules", "./dist/**/*"] + "extends": "../../tsconfig.json" } diff --git a/apps/schema-manager/.env.example b/apps/schema-manager/.env.example new file mode 100644 index 0000000..55e246f --- /dev/null +++ b/apps/schema-manager/.env.example @@ -0,0 +1,6 @@ +HTTP_HOST=0.0.0.0 +HTTP_PORT=3001 +NATS_URL=nats://localhost:4222 +NATS_USER=nats_user +NATS_PASSWORD= +NATS_MONITORING_URL=http://localhost:8222 diff --git a/apps/schema-manager/package.json b/apps/schema-manager/package.json index 2bceef8..4e08b78 100644 --- a/apps/schema-manager/package.json +++ b/apps/schema-manager/package.json @@ -12,16 +12,9 @@ "scripts": { "clean": "rimraf dist coverage *.tsbuildinfo", "prebuild": "pnpm clean", - "build": "nest build", - "prebuild:production": "pnpm clean", - "build:production": "nest build -p tsconfig.production.json", - "start": "nest start", - "start:dev": "nest start --watch --preserveWatchOutput", - "test": "jest", - "test:watch": "jest --watch", - "test:cov": "jest --coverage", - "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", - "test:e2e": "jest --config ./test/jest.config.js" + "build": "nest build -p tsconfig.production.json", + "start": "nest start --watch --preserveWatchOutput", + "test": "jest" }, "dependencies": { "@nestjs/common": "^10.3.0", diff --git a/apps/shared/package.json b/apps/shared/package.json index ba667e2..d3d3a7b 100644 --- a/apps/shared/package.json +++ b/apps/shared/package.json @@ -8,17 +8,11 @@ "license": "Apache-2.0", "main": "dist/index.js", "scripts": { - "clean": "rimraf dist *.tsbuildinfo", - "prebuild": "rimraf dist", + "clean": "rimraf dist coverage *.tsbuildinfo", + "prebuild": "pnpm clean", "build": "nest build", "build:production": "nest build -p tsconfig.production.json", - "start": "nest start", - "start:dev": "nest start --watch --preserveWatchOutput", - "test": "jest", - "test:watch": "jest --watch", - "test:cov": "jest --coverage", - "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", - "test:e2e": "jest --config ./test/jest.config.js" + "test": "jest" }, "dependencies": { "@aries-framework/anoncreds": "0.4.2", diff --git a/apps/ssi-abstraction/package.json b/apps/ssi-abstraction/package.json index 56ec085..7c92fe9 100644 --- a/apps/ssi-abstraction/package.json +++ b/apps/ssi-abstraction/package.json @@ -7,17 +7,11 @@ "type": "module", "license": "Apache-2.0", "scripts": { - "clean": "rimraf dist *.tsbuildinfo", + "clean": "rimraf dist coverage *.tsbuildinfo", "prebuild": "rimraf dist", - "build": "nest build", - "build:production": "nest build -p tsconfig.production.json", - "start": "nest start", - "start:dev": "nest start --watch --preserveWatchOutput", - "test": "jest", - "test:watch": "jest --watch", - "test:cov": "jest --coverage", - "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", - "test:e2e": "jest --config ./test/jest.config.js --runInBand" + "build": "nest build -p tsconfig.production.json", + "start": "nest start --watch --preserveWatchOutput", + "test": "jest" }, "dependencies": { "@aries-framework/anoncreds": "0.4.2", diff --git a/tsconfig.json b/tsconfig.json index 540b2fa..27bad30 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,5 @@ "experimentalDecorators": true, "noImplicitAny": true }, - "include": ["src", "scripts"], "exclude": ["node_modules"] } -- GitLab