Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/3000-home/cypress/e2e/app.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('3000-home/', () => {
'/api/test',
];
urls.forEach((url) => {
cy.request(url); // This makes a GET request, not a full page visit
cy.request(url);
});
});
});
Expand All @@ -22,6 +22,12 @@ describe('3000-home/', () => {
it('should display welcome message', () => {
getH1().contains('This is SPA combined');
});
it('Api endpoint works', () => {
const urls = ['/api/test'];
urls.forEach((url) => {
cy.request(url); // This makes a GET request, not a full page visit
});
});
});

describe('Image checks', () => {
Expand Down
3 changes: 1 addition & 2 deletions apps/runtime-demo/3005-runtime-host/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,5 @@
}
}
},
"tags": [],
"implicitDependencies": ["typescript"]
"tags": []
}
3 changes: 3 additions & 0 deletions apps/runtime-demo/3005-runtime-host/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ module.exports = composePlugins(withNx(), withReact(), (config, context) => {
}),
);
config.optimization.runtimeChunk = false;
if (!config.devServer) {
config.devServer = {};
}
config.devServer.host = '127.0.0.1';
config.plugins.forEach((p) => {
if (p.constructor.name === 'ModuleFederationPlugin') {
Expand Down
6 changes: 6 additions & 0 deletions apps/runtime-demo/3006-runtime-remote/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
"hmr": true,
"port": 3006
},
"dependsOn": [
{
"target": "build",
"dependencies": true
}
],
"configurations": {
"development": {
"buildTarget": "3006-runtime-remote:build:development"
Expand Down
2 changes: 1 addition & 1 deletion apps/runtime-demo/3006-runtime-remote/src/components/a.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
span {
color: red;
color: black;
}
3 changes: 3 additions & 0 deletions apps/runtime-demo/3006-runtime-remote/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module.exports = composePlugins(
config.watchOptions = {
ignored: ['**/dist/**'],
};
if (!config.devServer) {
config.devServer = {};
}
config.devServer.host = '127.0.0.1';

config.plugins.push(
Expand Down
6 changes: 6 additions & 0 deletions apps/runtime-demo/3007-runtime-remote/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
"hmr": true,
"port": 3007
},
"dependsOn": [
{
"target": "build",
"dependencies": true
}
],
"configurations": {
"development": {
"buildTarget": "3007-runtime-remote:build:development"
Expand Down
3 changes: 3 additions & 0 deletions apps/runtime-demo/3007-runtime-remote/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ module.exports = composePlugins(
},
}),
);
if (!config.devServer) {
config.devServer = {};
}
config.devServer.host = '127.0.0.1';
config.optimization.runtimeChunk = false;
config.plugins.forEach((p) => {
Expand Down
24 changes: 21 additions & 3 deletions apps/runtime-demo/3008-runtime-remote/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,39 @@
"options": {
"command": "npm run build",
"cwd": "apps/runtime-demo/3008-runtime-remote"
}
},
"dependsOn": [
{
"target": "build",
"dependencies": true
}
]
},
"serve": {
"executor": "nx:run-commands",
"options": {
"command": "npm run dev",
"cwd": "apps/runtime-demo/3008-runtime-remote"
}
},
"dependsOn": [
{
"target": "build",
"dependencies": true
}
]
},
"dev": {
"executor": "nx:run-commands",
"options": {
"command": "npm run dev",
"cwd": "apps/runtime-demo/3008-runtime-remote"
}
},
"dependsOn": [
{
"target": "build",
"dependencies": true
}
]
}
},
"tags": []
Expand Down
Loading