Skip to content

Commit

Permalink
Merge branch 'main' into feat/user-auth
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
  • Loading branch information
timonmasberg committed Dec 13, 2023
2 parents ec07268 + 2ff8b9d commit 4ee954b
Show file tree
Hide file tree
Showing 18 changed files with 6,483 additions and 5,864 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
Commit SHA: ${{ steps.set-pr-sha.outputs.head_sha }}
reactions: "rocket"
- name: AZ B2C Tenant Login
uses: azure/[email protected].0
uses: azure/[email protected].1
with:
creds: '${{ secrets.AZURE_AADB2C_CREDENTIALS }}'
allow-no-subscriptions: true
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
🏁 This PR has been closed. No deployment preview is available.
reactions: "hooray"
- name: AZ B2C Tenant Login
uses: azure/[email protected].0
uses: azure/[email protected].1
with:
creds: '${{ secrets.AZURE_AADB2C_CREDENTIALS }}'
allow-no-subscriptions: true
Expand Down
14 changes: 11 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@
"proseWrap": "always",
"overrides": [
{
"files": ["*.ts"],
"files": [
"*.ts"
],
"options": {
"parser": "typescript",
"importOrder": ["^@kordis/(.*)$", "^[./]"],
"importOrder": [
"^@kordis/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrderParserPlugins": [
Expand All @@ -20,6 +25,9 @@
}
}
],
"plugins": ["prettier-plugin-tailwindcss"],
"plugins": [
"@trivago/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss"
],
"tailwindConfig": "./apps/spa/tailwind.config.js"
}
5 changes: 1 addition & 4 deletions apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/api/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
5 changes: 1 addition & 4 deletions apps/spa-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/spa-e2e/**/*.{ts,tsx,js,jsx}"]
}
"outputs": ["{options.outputFile}"]
}
},
"tags": [],
Expand Down
5 changes: 1 addition & 4 deletions apps/spa/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/spa/**/*.ts", "apps/spa/**/*.html"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'],
rules: {
'body-max-line-length': [2, 'always', 200],
},
};
5 changes: 1 addition & 4 deletions libs/api/auth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api/auth/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
5 changes: 1 addition & 4 deletions libs/api/observability/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api/observability/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
3 changes: 0 additions & 3 deletions libs/api/observability/src/lib/sentry-observability.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Logger, Module, OnModuleInit } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { APP_FILTER, APP_INTERCEPTOR, ModulesContainer } from '@nestjs/core';
import { init as initSentry } from '@sentry/node';
import { ProfilingIntegration } from '@sentry/profiling-node';

import { SentryExceptionsFilter } from './filters/sentry-exceptions.filter';
import { SentryOTelUserContextInterceptor } from './interceptors/sentry-otel-user-context.interceptor';
Expand Down Expand Up @@ -48,11 +47,9 @@ export class SentryObservabilityModule implements OnModuleInit {
initSentry({
dsn: this.config.get('SENTRY_KEY'),
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
instrumenter: 'otel',
environment: this.config.get('ENVIRONMENT_NAME') ?? 'local-dev',
release: this.config.get('RELEASE_VERSION') ?? '0.0.0-development',
integrations: [new ProfilingIntegration()],
});
wrapProvidersWithTracingSpans(this.modulesContainer);
oTelSDK.start();
Expand Down
5 changes: 1 addition & 4 deletions libs/api/organization/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api/organization/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
5 changes: 1 addition & 4 deletions libs/api/shared/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api/shared/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down
5 changes: 1 addition & 4 deletions libs/api/test-helpers/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api/test-helpers/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
}
},
"tags": []
Expand Down
5 changes: 1 addition & 4 deletions libs/shared/auth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"targets": {
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/shared/auth/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
}
},
"tags": []
Expand Down
5 changes: 1 addition & 4 deletions libs/spa/auth/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/spa/auth/**/*.ts", "libs/spa/auth/**/*.html"]
}
"outputs": ["{options.outputFile}"]
}
},
"tags": []
Expand Down
8 changes: 1 addition & 7 deletions libs/spa/observability/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"libs/spa/observability/**/*.ts",
"libs/spa/observability/**/*.html"
]
}
"outputs": ["{options.outputFile}"]
}
}
}
92 changes: 5 additions & 87 deletions migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,93 +2,11 @@
"migrations": [
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Update the @angular/cli package version to ~17.0.0.",
"factory": "./src/migrations/update-17-1-0/update-angular-cli",
"package": "@nx/angular",
"name": "update-angular-cli-version-17-0-0"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Rename 'browserTarget' to 'buildTarget'.",
"factory": "./src/migrations/update-17-1-0/browser-target-to-build-target",
"package": "@nx/angular",
"name": "rename-browser-target-to-build-target"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Replace usages of '@nguniversal/builders' with '@angular-devkit/build-angular'.",
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-builders",
"package": "@nx/angular",
"name": "replace-nguniversal-builders"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Replace usages of '@nguniversal/' packages with '@angular/ssr'.",
"factory": "./src/migrations/update-17-1-0/replace-nguniversal-engines",
"package": "@nx/angular",
"name": "replace-nguniversal-engines"
},
{
"cli": "nx",
"version": "17.1.0-beta.5",
"requires": {
"@angular/core": ">=17.0.0"
},
"description": "Replace the deep imports from 'zone.js/dist/zone' and 'zone.js/dist/zone-testing' with 'zone.js' and 'zone.js/testing'.",
"factory": "./src/migrations/update-17-1-0/update-zone-js-deep-import",
"package": "@nx/angular",
"name": "update-zone-js-deep-import"
},
{
"version": "17.1.0-beta.1",
"description": "Updates for @typescript-utils/utils v6.9.1+",
"implementation": "./src/migrations/update-17-1-0/update-typescript-eslint",
"package": "@nx/eslint",
"name": "update-typescript-eslint"
},
{
"version": "17.1.0-beta.2",
"description": "Move jest executor options to nx.json targetDefaults",
"implementation": "./src/migrations/update-17-1-0/move-options-to-target-defaults",
"package": "@nx/jest",
"name": "move-options-to-target-defaults"
},
{
"version": "17.0.0",
"description": "Angular v17 introduces a new control flow syntax that uses the @ and } characters. This migration replaces the existing usages with their corresponding HTML entities.",
"factory": "./migrations/block-template-entities/bundle",
"package": "@angular/core",
"name": "block-template-entities"
},
{
"version": "17.0.0",
"description": "CompilerOption.useJit and CompilerOption.missingTranslation are unused under Ivy. This migration removes their usage",
"factory": "./migrations/compiler-options/bundle",
"package": "@angular/core",
"name": "migration-v17-compiler-options"
},
{
"version": "17.0.0",
"description": "Updates `TransferState`, `makeStateKey`, `StateKey` imports from `@angular/platform-browser` to `@angular/core`.",
"factory": "./migrations/transfer-state/bundle",
"package": "@angular/core",
"name": "migration-transfer-state"
"version": "17.2.1-beta.0",
"description": "Add webpack.config.js file when webpackConfig is not defined",
"implementation": "./src/migrations/update-17-2-1/webpack-config-setup",
"package": "@nx/webpack",
"name": "update-17-2-1-webpack-config-setup"
}
]
}
Loading

0 comments on commit 4ee954b

Please sign in to comment.