generator-ui5-library-af-deploy
v0.1.0
Published
Yeoman generator to add Application Frontend deployment configuration to a UI5 library project
Maintainers
Readme
generator-ui5-library-af-deploy
Yeoman generator that adds SAP BTP Application Frontend deployment configuration to a UI5 library project.
Installation
npm install -g yo generator-ui5-library-af-deployUsage
cd path/to/your-ui5-library
yo ui5-library-af-deployWhat it does
The generator reads ui5.yaml and the src/ directory structure of the current project, then:
- Detects the library namespace from
src/<path>/library.{ts,js}. - If
metadata.nameinui5.yamldoes not match the detected namespace, asks for confirmation and rewrites the line for you (answering "no" aborts the generator). - Creates the following deploy configuration files:
mta.yaml— MTA module + resources for Application Frontend + XSUAAui5-deploy.yaml— UI5 build config withui5-task-zipperconfigured for library buildsxs-app.json— Routing config withapp-frontservice and IAS authenticationxs-security.json— XSUAAxsappname(matches the archive name)
- Updates
package.json:- Adds
build:cf,build:mta,deployscripts - Adds
ui5-task-zipper,mbt,rimraftodevDependencies
- Adds
Requirements
- UI5 library project (
type: libraryinui5.yaml) - A single
src/<namespace-path>/library.{ts,js}entry point framework.versionandframework.librariesset inui5.yaml
After running
npm install
npm run build:cf
npm run build:mta
npm run deployLimitations (MVP)
- Targets Application Frontend service only (not the classic HTML5 App Repo)
- Authentication type is fixed to
ias - Always creates new service instances. If you want to reuse existing instances, adjust
mta.yamlafter running the generator.
Design
See docs/superpowers/specs/2026-05-23-library-af-deploy-generator-design.md.
