![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@ui5/server
Advanced tools
@ui5/server is a development server for UI5 projects. It provides a local server environment to serve UI5 applications and libraries, enabling developers to test and debug their UI5 projects locally.
Serve UI5 Applications
This feature allows you to serve a UI5 application locally. The code sample demonstrates how to set up a server on port 8080 to serve resources from the './webapp' directory.
const { serve } = require('@ui5/server');
const server = serve({
port: 8080,
resources: {
path: './webapp'
}
});
server.start();
Middleware Support
This feature allows you to add custom middleware to the server. The code sample shows how to log the request URL using a custom middleware function.
const { serve } = require('@ui5/server');
const server = serve({
port: 8080,
resources: {
path: './webapp'
},
middleware: [
function customMiddleware(req, res, next) {
console.log('Request URL:', req.url);
next();
}
]
});
server.start();
Live Reload
This feature enables live reloading of the application when changes are detected. The code sample demonstrates how to enable live reload by setting the 'liveReload' option to true.
const { serve } = require('@ui5/server');
const server = serve({
port: 8080,
resources: {
path: './webapp'
},
liveReload: true
});
server.start();
http-server is a simple, zero-configuration command-line HTTP server. It can be used to serve static files and is often used for quick local development. Unlike @ui5/server, it does not have built-in support for UI5-specific features like middleware or live reload.
live-server is a simple development HTTP server with live reload capability. It automatically reloads the page when files change. While it provides live reload similar to @ui5/server, it lacks UI5-specific middleware support.
webpack-dev-server is a development server that provides live reloading and other features for projects using Webpack. It is highly configurable and supports middleware, but it is more complex to set up compared to @ui5/server, which is tailored for UI5 projects.
Modules for running a UI5 development server
Part of the UI5 Tooling
UI5 Server documentation can be found here: sap.github.io/ui5-tooling
The UI5 Server API Reference can be found here: @ui5/server
Please check our Contribution Guidelines.
Please follow our Contribution Guidelines on how to report an issue.
Please report issues in the main UI5 Tooling repository.
See CHANGELOG.md.
[v4.0.5] - 2024-09-11
f713647
<a name="v4.0.4"></a>
FAQs
UI5 Tooling - Server
The npm package @ui5/server receives a total of 0 weekly downloads. As such, @ui5/server popularity was classified as not popular.
We found that @ui5/server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.