UI5Lab is a community driven repository for UI5 Custom Control Libraries. It's purpose is to make it easy for everyone to share, retrieve and use UI5 Custom Controls. Contributions welcome!
A simple control library example that holds custom geometrical controls for testing the UI5Lab library structure. You may use this repository as a reference to develop or publish your own UI5Lab controls. Have a look at our documentation for more details.
The repository is an example how to create custom OpenUI5 control library using the UI5 build tools & npm modules based on the library documentation in the OpenUI5 repository.
Install node.js (get it from nodejs.org).
Clone the repository and navigate into it:
git clone https://github.com/openui5/UI5Lab-library-simple
cd UI5Lab-library-simple
Install all npm dependencies (also installs all UI5 libraries needed):
npm install
Run the postinstall step to copy and configure the browser inside your project for testing your library samples:
npm run postinstall
Run a local Web server with the ui5 tools for testing the library and its metadata:
npm start
Note: Run
npm install --global @ui5/cli
if theui5
command is not registered (for more information see ui5 tooling)
The UI5Lab-browser is loaded as a dependency to display the library content for testing during development. Make sure that your library samples and metadata are properly filled before publishing a library to UI5Lab
Note: this metadata is still work in progress and subject to change. We will have to see what the best place and structure for this is in the future
Run ui5 build tools to create a library preload and the CSS theme build for your library artifacts. Everything (minified and unminified sources) will be created in the dist folder, ready to be published and consumed by other projects
npm run build
Publish your package to npm, be sure to include only the metadata and the dist folder to keep the package size small (see .npmignore file for details)
npm publish
Issues can be created either in this repository or in any of the contributor repositories depending on where the error came from. Be sure to include enough details and context to reproduce the issue and follow up with you.
We organize this project in Slack Channel #UI5Lab. If you are interested in what we do and discuss, join with this invitation link or visit the homepage https://ui5lab.io.
The UI5Lab Community