Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@ui5/tooling-webc
Advanced tools
UI5 Tooling Extensions to include UI5 Web Components projects into OpenUI5/SAPUI5
Provides UI5 Tooling Extensions to include UI5 Web Components projects into OpenUI5 / SAPUI5.
Attention: This project is in an experimental state. Significant changes are likely to occur, including potential breaking changes.
The repository contains the NPM package: @ui5/tooling-webc
. This package provides scripts to prebuild and generate UI5 library wrapper projects for UI5 Web Components and a custom middleware to be used for the development of UI5 library wrapper projects and a direct consumption of the UI5 Web Components projects. In other words, it enables to use UI5 Web Components as OpenUI5/SAPUI5 controls.
Inside this package the most important scripts can be found at the following places:
bin
├── generate.js // generation binary => ui5-webc-generate
└── prebuild.js // prebuild binary => ui5-webc-prebuild
lib
├── generate.js // generation script
├── prebuild.js // prebuild script
├── middleware.js // UI5 server middleware for serving web-components-based projects
└── task.js // UI5 build task for third-party libraries only
Note: Starting from version 0.3.0
only the Custom Elements Manifest format is supported for the purpose of wrapper generation
The project is using npm
. To get started with the local development, just run the following commands:
# Install dependencies
npm install
# Create a link
npm link
Now you can link the package for local testing by calling the following command:
# Link it
npm install @ui5/tooling-webc
That's it, all set!
Use the NPM package manager of your choice to add the @ui5/tooling-webc
as a devDependency
to your UI5 library:
# NPM
npm i --save-dev @ui5/tooling-webc
# yarn
yarn add -D @ui5/tooling-webc
# PNPM
pnpm add -D @ui5/tooling-webc
Add the necessary configuration to your UI5 library in the ui5.yaml
file. The configuration should go to customConfiguration
-> ui5-tooling-webc
.
For example:
customConfiguration:
ui5-tooling-webc:
<YOUR CONFIGURATION GOES HERE>
For more details on the supported ui5-tooling-webc:
configuration settings, click here.
The tooling extension comes with two binaries which can be called directly (eventually by using npx
):
# create the runtime for the web components
ui5-webc-prebuild
# create the wrapper controls
ui5-webc-generate
Optionally, add these as part of your library's build tasks:
{
"scripts": {
"prebuild": "ui5-webc-prebuild",
"generate": "ui5-webc-generate"
}
}
Define the dependency in $yourapp/package.json
:
"devDependencies": {
// ...
"@ui5/tooling-webc": "*"
// ...
},
"ui5": {
"dependencies": [
// ...
"@ui5/tooling-webc",
// ...
]
}
As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the
ui5 > dependencies
array. In addition, once using theui5 > dependencies
array you need to list all UI5 tooling relevant dependencies.
Configure it in $yourapp/ui5.yaml
:
server:
customMiddleware:
- name: ui5-tooling-webc-middleware
afterMiddleware: compression
That's all.
This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2022 SAP SE. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.
FAQs
UI5 Tooling Extensions to include UI5 Web Components projects into OpenUI5/SAPUI5
The npm package @ui5/tooling-webc receives a total of 4,328 weekly downloads. As such, @ui5/tooling-webc popularity was classified as popular.
We found that @ui5/tooling-webc 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.