@nx/angular 19.6.0-canary.20240719-83b88a1 → 19.6.0-canary.20240723-c4f9d89
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -8
- package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +1 -0
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +1 -0
- package/src/generators/setup-ssr/files/server/server-builder/v17+/__serverFileName__ +7 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.6.0-canary.
|
3
|
+
"version": "19.6.0-canary.20240723-c4f9d89",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
6
6
|
"repository": {
|
@@ -80,14 +80,14 @@
|
|
80
80
|
"webpack-merge": "^5.8.0",
|
81
81
|
"webpack": "^5.88.0",
|
82
82
|
"@module-federation/enhanced": "~0.2.3",
|
83
|
-
"@nx/devkit": "19.6.0-canary.
|
84
|
-
"@nx/js": "19.6.0-canary.
|
85
|
-
"@nx/eslint": "19.6.0-canary.
|
86
|
-
"@nx/webpack": "19.6.0-canary.
|
87
|
-
"@nx/web": "19.6.0-canary.
|
88
|
-
"@nx/workspace": "19.6.0-canary.
|
83
|
+
"@nx/devkit": "19.6.0-canary.20240723-c4f9d89",
|
84
|
+
"@nx/js": "19.6.0-canary.20240723-c4f9d89",
|
85
|
+
"@nx/eslint": "19.6.0-canary.20240723-c4f9d89",
|
86
|
+
"@nx/webpack": "19.6.0-canary.20240723-c4f9d89",
|
87
|
+
"@nx/web": "19.6.0-canary.20240723-c4f9d89",
|
88
|
+
"@nx/workspace": "19.6.0-canary.20240723-c4f9d89",
|
89
89
|
"piscina": "^4.4.0",
|
90
|
-
"@nrwl/angular": "19.6.0-canary.
|
90
|
+
"@nrwl/angular": "19.6.0-canary.20240723-c4f9d89"
|
91
91
|
},
|
92
92
|
"peerDependencies": {
|
93
93
|
"@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
|
@@ -32,6 +32,7 @@ async function* moduleFederationDevServerExecutor(schema, context) {
|
|
32
32
|
spa: false,
|
33
33
|
withDeps: false,
|
34
34
|
cors: true,
|
35
|
+
cacheSeconds: -1,
|
35
36
|
}, context)
|
36
37
|
: (0, rxjs_for_await_1.eachValueFrom)((0, dev_server_impl_1.executeDevServerBuilder)(options, await (0, ngcli_adapter_1.createBuilderContext)({
|
37
38
|
builderName: '@nx/angular:webpack-browser',
|
@@ -23,13 +23,15 @@ export function app(): express.Express {
|
|
23
23
|
// Example Express Rest API endpoints
|
24
24
|
// server.get('/api/**', (req, res) => { });
|
25
25
|
// Serve static files from /browser
|
26
|
-
server.get(
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
server.get(
|
27
|
+
'*.*',
|
28
|
+
express.static(distFolder, {
|
29
|
+
maxAge: '1y',
|
30
|
+
})
|
31
|
+
);
|
30
32
|
|
31
33
|
// All regular routes use the Angular engine
|
32
|
-
server.get('
|
34
|
+
server.get('*', (req, res, next) => {
|
33
35
|
const { protocol, originalUrl, baseUrl, headers } = req;
|
34
36
|
|
35
37
|
commonEngine
|