Skip to content

Commit c7333d4

Browse files
authored
build: update nx to 20.2.2 (#358)
1 parent bfb13c9 commit c7333d4

File tree

125 files changed

+4347
-4042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+4347
-4042
lines changed

apps/blog/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"prefix": "al",
2525
"style": "kebab-case"
2626
}
27-
]
27+
],
28+
"@angular-eslint/prefer-standalone": "off"
2829
}
2930
},
3031
{

apps/blog/scripts/build-routes.mjs

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,24 +124,30 @@ function writeSSGRoutesToFile() {
124124
console.error('Error writing paths to file:', error);
125125
});
126126

127-
try {
128-
ssgRoutes.forEach((routeObj) => {
129-
const route = routeObj.url;
127+
let currentIndex = 0;
128+
const totalRoutes = ssgRoutes.length;
129+
130+
function writeNextRoute() {
131+
let canContinue = true;
132+
while (currentIndex < totalRoutes && canContinue) {
133+
const routeObj = ssgRoutes[currentIndex];
130134
const defaultLangPrefix = `/${DEFAULT_LANGUAGE}/`;
131-
const formattedRoute = route.startsWith(defaultLangPrefix)
132-
? route.replace(defaultLangPrefix, '/')
133-
: route;
135+
const formattedRoute = routeObj.url.startsWith(defaultLangPrefix)
136+
? routeObj.url.replace(defaultLangPrefix, '/')
137+
: routeObj.url;
134138

135-
if (!stream.write(`${formattedRoute}\n`)) {
136-
stream.once('drain', () => writeSSGRoutesToFile());
137-
}
138-
});
139-
} catch (error) {
140-
console.error('Error during write operation:', error);
141-
throw error;
142-
} finally {
143-
stream.end();
139+
canContinue = stream.write(`${formattedRoute}\n`);
140+
currentIndex++;
141+
}
142+
143+
if (currentIndex < totalRoutes) {
144+
stream.once('drain', writeNextRoute);
145+
} else {
146+
stream.end();
147+
}
144148
}
149+
150+
writeNextRoute();
145151
}
146152

147153
/**

apps/blog/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { dirname, join, resolve } from 'node:path';
22
import { fileURLToPath } from 'node:url';
33
import { APP_BASE_HREF } from '@angular/common';
4-
import { CommonEngine } from '@angular/ssr';
4+
import { CommonEngine } from '@angular/ssr/node';
55
import compressionModule from 'compression';
66
import express from 'express';
77

apps/blog/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { RouterOutlet } from '@angular/router';
55
import { AppThemeStore } from '@angular-love/data-access-app-theme';
66

77
@Component({
8-
standalone: true,
98
selector: 'al-root',
109
templateUrl: './app.component.html',
1110
styleUrls: ['./app.component.scss'],

libs/blog/about-us/feature-about-us/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"prefix": "al",
2525
"style": "kebab-case"
2626
}
27-
]
27+
],
28+
"@angular-eslint/prefer-standalone": "off"
2829
}
2930
},
3031
{

libs/blog/about-us/feature-about-us/src/lib/feature-about-us/feature-about-us.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { SocialMediaIconsComponent } from '@angular-love/blog/shared/ui-social-m
1919

2020
@Component({
2121
selector: 'al-about-us',
22-
standalone: true,
2322
imports: [
2423
CardComponent,
2524
NewsletterComponent,

libs/blog/ad-banner/data-access/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"prefix": "al",
2525
"style": "kebab-case"
2626
}
27-
]
27+
],
28+
"@angular-eslint/prefer-standalone": "off"
2829
}
2930
},
3031
{

libs/blog/ad-banner/ui/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"prefix": "al",
2525
"style": "kebab-case"
2626
}
27-
]
27+
],
28+
"@angular-eslint/prefer-standalone": "off"
2829
}
2930
},
3031
{

libs/blog/ad-banner/ui/src/lib/ad-image-banner/ad-image-banner.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { AdImageBanner } from './ad-image-banner-data.interface';
88

99
@Component({
1010
selector: 'al-ad-image-banner',
11-
standalone: true,
1211
imports: [NgOptimizedImage],
1312
templateUrl: './ad-image-banner.component.html',
1413
})

libs/blog/ad-banner/ui/src/lib/banner-carousel/al-banner-carousel.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { AlInfiniteSliderDirective } from '../infinite-slider-directive/al-infin
66

77
@Component({
88
selector: 'al-banner-carousel',
9-
standalone: true,
109
imports: [AdImageBannerComponent, AlInfiniteSliderDirective],
1110
changeDetection: ChangeDetectionStrategy.OnPush,
1211
template: `

0 commit comments

Comments
 (0)