Skip to content

Commit

Permalink
chore(migrate): migrate to nx-16-9-0 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherPHolder committed Sep 26, 2023
2 parents 56f10f1 + 3fd093e commit c246e16
Show file tree
Hide file tree
Showing 15 changed files with 26,952 additions and 46,792 deletions.
2 changes: 1 addition & 1 deletion libs/audit-queue/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["coverage/libs/audit-queue"],
"outputs": ["{workspaceRoot}/coverage/libs/audit-queue"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/libs/audit-queue"
Expand Down
2 changes: 1 addition & 1 deletion libs/audit-store/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["coverage/libs/audit-store"],
"outputs": ["{workspaceRoot}/coverage/libs/audit-store"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/libs/audit-store"
Expand Down
2 changes: 1 addition & 1 deletion libs/cli-middleware/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["coverage/libs/cli-middleware"],
"outputs": ["{workspaceRoot}/coverage/libs/cli-middleware"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/libs/cli-middleware"
Expand Down
3 changes: 2 additions & 1 deletion libs/data-access/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/data-access/ng-package.json"
"project": "libs/data-access/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
},
"configurations": {
"production": {
Expand Down
3 changes: 2 additions & 1 deletion libs/environments/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/environments/ng-package.json"
"project": "libs/environments/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
},
"configurations": {
"production": {
Expand Down
3 changes: 2 additions & 1 deletion libs/features/result-viewer/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/features/result-viewer/ng-package.json"
"project": "libs/features/result-viewer/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
},
"configurations": {
"production": {
Expand Down
3 changes: 2 additions & 1 deletion libs/features/simple-audit/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/features/simple-audit/ng-package.json"
"project": "libs/features/simple-audit/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
},
"configurations": {
"production": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { RxState } from '@rx-angular/state';
import { SimpleAuditAdapter } from './simple-audit.adapter';
import { AuditStatusType } from 'shared';
import { map, startWith, tap } from 'rxjs';
import { IfModule } from '@rx-angular/template/if';
import { RxIf } from '@rx-angular/template/if';
import { RxActionFactory } from '@rx-angular/state/actions';

type ContainerState = {
Expand All @@ -22,7 +22,7 @@ type UiActions = {
@Component({
selector: 'app-simple-audit',
standalone: true,
imports: [CommonModule, UserFlowFormComponent, ResultsDisplayComponent, IfModule],
imports: [CommonModule, UserFlowFormComponent, ResultsDisplayComponent, RxIf],
template: `
<div class='audit-heading-container'>
<h1 class='audit-section-title'>Flow Audits</h1>
Expand Down
3 changes: 2 additions & 1 deletion libs/shared/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/shared/ng-package.json"
"project": "libs/shared/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
},
"configurations": {
"production": {
Expand Down
3 changes: 2 additions & 1 deletion libs/ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"executor": "@nx/angular:ng-packagr-lite",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"options": {
"project": "libs/ui/ng-package.json"
"project": "libs/ui/ng-package.json",
"updateBuildableProjectDepsInPackageJson": true
},
"configurations": {
"production": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';
import {map, Observable} from 'rxjs';
import {AuditStatusType} from 'shared';
import {LetModule} from '@rx-angular/template/let';
import { RxLet } from '@rx-angular/template/let';

const progressMap: Record<Partial<AuditStatusType>, string> = {
idle: '',
Expand All @@ -15,7 +15,7 @@ const progressMap: Record<Partial<AuditStatusType>, string> = {
@Component({
selector: 'app-progress-toaster',
standalone: true,
imports: [LetModule],
imports: [RxLet],
template: `<output class='toast-text' *rxLet='toasterText$; let toasterText'>{{toasterText}}</output>`,
styles: [`.toast-text { text-align: center; display: block; }`],
encapsulation: ViewEncapsulation.Emulated,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { LoadingSpinnerComponent } from '../loading-spinner/loading-spinner.comp
import { map, Observable } from 'rxjs';
import { AuditStatusType, BypassSrcDirective} from 'shared';
import { RxState } from '@rx-angular/state';
import { IfModule } from '@rx-angular/template/if';
import { PushModule } from '@rx-angular/template/push';
import { RxIf } from '@rx-angular/template/if';
import { RxPush } from '@rx-angular/template/push';
import { ProgressToasterComponent } from '../progress-toaster/progress-toaster.component';

type ComponentState = {
Expand All @@ -22,8 +22,8 @@ type ComponentState = {
BypassSrcDirective,
LoadingSpinnerComponent,
ProgressToasterComponent,
IfModule,
PushModule,
RxPush,
RxIf,
],
template: `
<div class='audit-results-box'>
Expand Down
2 changes: 1 addition & 1 deletion libs/user-flow-replay/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["coverage/libs/user-flow-replay"],
"outputs": ["{workspaceRoot}/coverage/libs/user-flow-replay"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/libs/user-flow-replay"
Expand Down
Loading

0 comments on commit c246e16

Please sign in to comment.