diff --git a/libs/prompt/domain/README.md b/libs/prompt/domain/README.md new file mode 100644 index 0000000..dbc4be9 --- /dev/null +++ b/libs/prompt/domain/README.md @@ -0,0 +1,7 @@ +# prompt-domain + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test prompt-domain` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/prompt/domain/eslint.config.js b/libs/prompt/domain/eslint.config.js new file mode 100644 index 0000000..07e518f --- /dev/null +++ b/libs/prompt/domain/eslint.config.js @@ -0,0 +1,3 @@ +const baseConfig = require('../../../eslint.config.js'); + +module.exports = [...baseConfig]; diff --git a/libs/prompt/domain/user-prompt-log-entity/jest.config.ts b/libs/prompt/domain/jest.config.ts similarity index 52% rename from libs/prompt/domain/user-prompt-log-entity/jest.config.ts rename to libs/prompt/domain/jest.config.ts index 399465b..bcca9a5 100644 --- a/libs/prompt/domain/user-prompt-log-entity/jest.config.ts +++ b/libs/prompt/domain/jest.config.ts @@ -1,11 +1,10 @@ export default { - displayName: 'user-prompt-log-entity', - preset: '../../../../jest.preset.js', + displayName: 'prompt-domain', + preset: '../../../jest.preset.js', testEnvironment: 'node', transform: { '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], }, moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: - '../../../../coverage/libs/prompt/domain/user-prompt-log-entity', + coverageDirectory: '../../../coverage/libs/prompt/domain', }; diff --git a/libs/prompt/domain/project.json b/libs/prompt/domain/project.json new file mode 100644 index 0000000..75e9697 --- /dev/null +++ b/libs/prompt/domain/project.json @@ -0,0 +1,9 @@ +{ + "name": "prompt-domain", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/prompt/domain/src", + "projectType": "library", + "tags": [], + "// targets": "to see all targets run: nx show project prompt-domain --web", + "targets": {} +} diff --git a/libs/prompt/domain/wellbeing-prompt-entity/src/index.ts b/libs/prompt/domain/src/index.ts similarity index 50% rename from libs/prompt/domain/wellbeing-prompt-entity/src/index.ts rename to libs/prompt/domain/src/index.ts index 401a023..4b43028 100644 --- a/libs/prompt/domain/wellbeing-prompt-entity/src/index.ts +++ b/libs/prompt/domain/src/index.ts @@ -1 +1,2 @@ +export * from './lib/user-prompt-log-entity'; export * from './lib/wellbeing-prompt-entity'; diff --git a/libs/prompt/domain/user-prompt-log-entity/src/lib/user-prompt-log-entity.spec.ts b/libs/prompt/domain/src/lib/user-prompt-log-entity.spec.ts similarity index 100% rename from libs/prompt/domain/user-prompt-log-entity/src/lib/user-prompt-log-entity.spec.ts rename to libs/prompt/domain/src/lib/user-prompt-log-entity.spec.ts diff --git a/libs/prompt/domain/user-prompt-log-entity/src/lib/user-prompt-log-entity.ts b/libs/prompt/domain/src/lib/user-prompt-log-entity.ts similarity index 100% rename from libs/prompt/domain/user-prompt-log-entity/src/lib/user-prompt-log-entity.ts rename to libs/prompt/domain/src/lib/user-prompt-log-entity.ts diff --git a/libs/prompt/domain/wellbeing-prompt-entity/src/lib/wellbeing-prompt-entity.spec.ts b/libs/prompt/domain/src/lib/wellbeing-prompt-entity.spec.ts similarity index 100% rename from libs/prompt/domain/wellbeing-prompt-entity/src/lib/wellbeing-prompt-entity.spec.ts rename to libs/prompt/domain/src/lib/wellbeing-prompt-entity.spec.ts diff --git a/libs/prompt/domain/wellbeing-prompt-entity/src/lib/wellbeing-prompt-entity.ts b/libs/prompt/domain/src/lib/wellbeing-prompt-entity.ts similarity index 100% rename from libs/prompt/domain/wellbeing-prompt-entity/src/lib/wellbeing-prompt-entity.ts rename to libs/prompt/domain/src/lib/wellbeing-prompt-entity.ts diff --git a/libs/prompt/domain/user-prompt-log-entity/tsconfig.json b/libs/prompt/domain/tsconfig.json similarity index 90% rename from libs/prompt/domain/user-prompt-log-entity/tsconfig.json rename to libs/prompt/domain/tsconfig.json index 07e0ec6..0dc79ca 100644 --- a/libs/prompt/domain/user-prompt-log-entity/tsconfig.json +++ b/libs/prompt/domain/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../tsconfig.base.json", "compilerOptions": { "module": "commonjs", "forceConsistentCasingInFileNames": true, diff --git a/libs/prompt/domain/user-prompt-log-entity/tsconfig.lib.json b/libs/prompt/domain/tsconfig.lib.json similarity index 85% rename from libs/prompt/domain/user-prompt-log-entity/tsconfig.lib.json rename to libs/prompt/domain/tsconfig.lib.json index 28369ef..e583571 100644 --- a/libs/prompt/domain/user-prompt-log-entity/tsconfig.lib.json +++ b/libs/prompt/domain/tsconfig.lib.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "commonjs", - "outDir": "../../../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "declaration": true, "types": ["node"] }, diff --git a/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.spec.json b/libs/prompt/domain/tsconfig.spec.json similarity index 84% rename from libs/prompt/domain/wellbeing-prompt-entity/tsconfig.spec.json rename to libs/prompt/domain/tsconfig.spec.json index 6668655..69a251f 100644 --- a/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.spec.json +++ b/libs/prompt/domain/tsconfig.spec.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "../../../../dist/out-tsc", + "outDir": "../../../dist/out-tsc", "module": "commonjs", "types": ["jest", "node"] }, diff --git a/libs/prompt/domain/user-prompt-log-entity/README.md b/libs/prompt/domain/user-prompt-log-entity/README.md deleted file mode 100644 index 5fa4bd1..0000000 --- a/libs/prompt/domain/user-prompt-log-entity/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# user-prompt-log-entity - -This library was generated with [Nx](https://nx.dev). - -## Running unit tests - -Run `nx test user-prompt-log-entity` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/prompt/domain/user-prompt-log-entity/eslint.config.js b/libs/prompt/domain/user-prompt-log-entity/eslint.config.js deleted file mode 100644 index cdd3cba..0000000 --- a/libs/prompt/domain/user-prompt-log-entity/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const baseConfig = require('../../../../eslint.config.js'); - -module.exports = [...baseConfig]; diff --git a/libs/prompt/domain/user-prompt-log-entity/project.json b/libs/prompt/domain/user-prompt-log-entity/project.json deleted file mode 100644 index 6b6544b..0000000 --- a/libs/prompt/domain/user-prompt-log-entity/project.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "user-prompt-log-entity", - "$schema": "../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/prompt/domain/user-prompt-log-entity/src", - "projectType": "library", - "tags": [], - "// targets": "to see all targets run: nx show project user-prompt-log-entity --web", - "targets": {} -} diff --git a/libs/prompt/domain/user-prompt-log-entity/src/index.ts b/libs/prompt/domain/user-prompt-log-entity/src/index.ts deleted file mode 100644 index fe0518f..0000000 --- a/libs/prompt/domain/user-prompt-log-entity/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/user-prompt-log-entity'; diff --git a/libs/prompt/domain/user-prompt-log-entity/tsconfig.spec.json b/libs/prompt/domain/user-prompt-log-entity/tsconfig.spec.json deleted file mode 100644 index 6668655..0000000 --- a/libs/prompt/domain/user-prompt-log-entity/tsconfig.spec.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "src/**/*.test.ts", - "src/**/*.spec.ts", - "src/**/*.d.ts" - ] -} diff --git a/libs/prompt/domain/wellbeing-prompt-entity/README.md b/libs/prompt/domain/wellbeing-prompt-entity/README.md deleted file mode 100644 index 1eb8b1f..0000000 --- a/libs/prompt/domain/wellbeing-prompt-entity/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# wellbeing-prompt-entity - -This library was generated with [Nx](https://nx.dev). - -## Running unit tests - -Run `nx test wellbeing-prompt-entity` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/prompt/domain/wellbeing-prompt-entity/eslint.config.js b/libs/prompt/domain/wellbeing-prompt-entity/eslint.config.js deleted file mode 100644 index cdd3cba..0000000 --- a/libs/prompt/domain/wellbeing-prompt-entity/eslint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const baseConfig = require('../../../../eslint.config.js'); - -module.exports = [...baseConfig]; diff --git a/libs/prompt/domain/wellbeing-prompt-entity/jest.config.ts b/libs/prompt/domain/wellbeing-prompt-entity/jest.config.ts deleted file mode 100644 index 05ec1e5..0000000 --- a/libs/prompt/domain/wellbeing-prompt-entity/jest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default { - displayName: 'wellbeing-prompt-entity', - preset: '../../../../jest.preset.js', - testEnvironment: 'node', - transform: { - '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], - }, - moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: - '../../../../coverage/libs/prompt/domain/wellbeing-prompt-entity', -}; diff --git a/libs/prompt/domain/wellbeing-prompt-entity/project.json b/libs/prompt/domain/wellbeing-prompt-entity/project.json deleted file mode 100644 index e55ef7b..0000000 --- a/libs/prompt/domain/wellbeing-prompt-entity/project.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "wellbeing-prompt-entity", - "$schema": "../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/prompt/domain/wellbeing-prompt-entity/src", - "projectType": "library", - "tags": [], - "// targets": "to see all targets run: nx show project wellbeing-prompt-entity --web", - "targets": {} -} diff --git a/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.json b/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.json deleted file mode 100644 index 2c9d3a5..0000000 --- a/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "../../../../tsconfig.base.json", - "compilerOptions": { - "module": "commonjs" - }, - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] -} diff --git a/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.lib.json b/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.lib.json deleted file mode 100644 index 28369ef..0000000 --- a/libs/prompt/domain/wellbeing-prompt-entity/tsconfig.lib.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "commonjs", - "outDir": "../../../../dist/out-tsc", - "declaration": true, - "types": ["node"] - }, - "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"], - "include": ["src/**/*.ts"] -} diff --git a/libs/user/domain/project.json b/libs/user/domain/project.json index e7be118..0987b49 100644 --- a/libs/user/domain/project.json +++ b/libs/user/domain/project.json @@ -1,9 +1,9 @@ { - "name": "domain", + "name": "user-domain", "$schema": "../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/user/domain/src", "projectType": "library", "tags": [], - "// targets": "to see all targets run: nx show project domain --web", + "// targets": "to see all targets run: nx show project user-domain --web", "targets": {} } diff --git a/tsconfig.base.json b/tsconfig.base.json index 58a3b4a..ac6d8fe 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -16,12 +16,7 @@ "baseUrl": ".", "paths": { "@libs/config": ["libs/config/src/index.ts"], - "@prompt/user-prompt-log-entity": [ - "libs/prompt/domain/user-prompt-log-entity/src/index.ts" - ], - "@prompt/wellbeing-prompt-entity": [ - "libs/prompt/domain/wellbeing-prompt-entity/src/index.ts" - ], + "@prompt/domain": ["libs/prompt/domain/src/index.ts"], "@user/domain": ["libs/user/domain/src/index.ts"] } },