Skip to content

Commit

Permalink
feat: init group infra
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed Jun 2, 2024
1 parent a803c07 commit 738af5f
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 0 deletions.
18 changes: 18 additions & 0 deletions libs/group-infrastructure/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/group-infrastructure/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# group-infrastructure

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test group-infrastructure` to execute the unit tests via [Jest](https://jestjs.io).
11 changes: 11 additions & 0 deletions libs/group-infrastructure/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable */
export default {
displayName: 'group-infrastructure',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/libs/group-infrastructure',
};
18 changes: 18 additions & 0 deletions libs/group-infrastructure/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "group-infrastructure",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/group-infrastructure/src",
"projectType": "library",
"tags": ["scope:infrastructure"],
"// targets": "to see all targets run: nx show project group-infrastructure --web",
"targets": {
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/group-infrastructure/jest.config.ts",
"passWithNoTests": true
}
}
}
}
1 change: 1 addition & 0 deletions libs/group-infrastructure/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/group-infrastructure';
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { groupInfrastructure } from './group-infrastructure';

describe('groupInfrastructure', () => {
it('should work', () => {
expect(groupInfrastructure()).toEqual('group-infrastructure');
});
});
3 changes: 3 additions & 0 deletions libs/group-infrastructure/src/lib/group-infrastructure.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function groupInfrastructure(): string {
return 'group-infrastructure';
}
16 changes: 16 additions & 0 deletions libs/group-infrastructure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs"
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
11 changes: 11 additions & 0 deletions libs/group-infrastructure/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"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"]
}
14 changes: 14 additions & 0 deletions libs/group-infrastructure/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"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"
]
}
3 changes: 3 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"@azkaban/auth-domain": ["libs/auth-domain/src/index.ts"],
"@azkaban/auth-infrastructure": ["libs/auth-infrastructure/src/index.ts"],
"@azkaban/group-domain": ["libs/group-domain/src/index.ts"],
"@azkaban/group-infrastructure": [
"libs/group-infrastructure/src/index.ts"
],
"@azkaban/notification-domain": ["libs/notification-domain/src/index.ts"],
"@azkaban/notification-infrastructure": [
"libs/notification-infrastructure/src/index.ts"
Expand Down

0 comments on commit 738af5f

Please sign in to comment.