Skip to content

Commit 6d7db1e

Browse files
committed
feat: updated packages
1 parent 7610423 commit 6d7db1e

Some content is hidden

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

42 files changed

+439
-39
lines changed

apps/api/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function bootstrap() {
1313
const globalPrefix = 'api';
1414
app.setGlobalPrefix(globalPrefix);
1515
app.enableShutdownHooks();
16-
const port = process.env.PORT || 3000;
16+
const port = process.env.PORT || 5000;
1717
await app.listen(port);
1818
Logger.log(
1919
`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`,

apps/app/project.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
"input": "apps/app/public"
2424
}
2525
],
26-
"styles": [
27-
"apps/app/src/styles.scss"
28-
],
26+
"styles": ["apps/app/src/styles.scss"],
27+
"stylePreprocessorOptions": {
28+
"includePaths": ["node_modules/"]
29+
},
2930
"externalDependencies": [
3031
"@nestjs/microservices",
3132
"@nestjs/microservices/microservices-module",
@@ -36,7 +37,9 @@
3637
"class-validator"
3738
],
3839
"scripts": [],
39-
"prerender": true,
40+
"prerender": {
41+
"routesFile": "routes.txt"
42+
},
4043
"ssr": {
4144
"entry": "apps/app/server/server.ts"
4245
}

apps/app/proxy.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"/api": {
3-
"target": "http://localhost:3000",
3+
"target": "http://localhost:5000",
44
"secure": false
55
}
66
}

apps/app/public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

apps/app/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { AppModule } from '@app/backend-root';
99
import { ExpressAdapter } from '@nestjs/platform-express';
1010

1111
// The Express app is exported so that it can be used by serverless Functions.
12-
export async function app(): Promise<express.Express> {
12+
export async function app() {
1313
const server = express();
1414
const serverDistFolder = dirname(fileURLToPath(import.meta.url));
1515
const browserDistFolder = resolve(serverDistFolder, '../browser');

apps/app/src/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>app</title>
5+
<title>Angular + NestJS example</title>
66
<base href="/" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1" />
87
<link rel="icon" type="image/x-icon" href="favicon.ico" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
<meta name="description" content="Angular + NestJS example" >
10+
<link rel="preconnect" href="https://fonts.gstatic.com" />
911
</head>
10-
<body class="mat-typography">
12+
<body>
1113
<app-root></app-root>
1214
</body>
1315
</html>

apps/app/src/main.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ import { RootComponent, config } from '@app/frontend-root';
33
const bootstrap = () => bootstrapApplication(RootComponent, config);
44

55
export default bootstrap;
6-

libs/backend/routes-generator/src/services/routes-generator.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { Injectable } from '@nestjs/common';
33
@Injectable()
44
export class RoutesGeneratorService {
55
generateRoutesTxt() {
6-
return `/home`;
6+
return `/`;
77
}
88
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": ["../../../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": [
8+
"plugin:@nx/angular",
9+
"plugin:@angular-eslint/template/process-inline-templates"
10+
],
11+
"rules": {
12+
"@angular-eslint/directive-selector": [
13+
"error",
14+
{
15+
"type": "attribute",
16+
"prefix": "lib",
17+
"style": "camelCase"
18+
}
19+
],
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"type": "element",
24+
"prefix": "lib",
25+
"style": "kebab-case"
26+
}
27+
]
28+
}
29+
},
30+
{
31+
"files": ["*.html"],
32+
"extends": ["plugin:@nx/angular-template"],
33+
"rules": {}
34+
}
35+
]
36+
}

libs/frontend/pages/home/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frontend-pages-home
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Running unit tests
6+
7+
Run `nx test frontend-pages-home` to execute the unit tests.

0 commit comments

Comments
 (0)