Skip to content
 
 

Repository files navigation

UI5Lab Logo

What is it

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!

UI5Lab-library-simple

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 Grunt & Bower based on the library documentation in the OpenUI5 repository.

Setup

  1. Install node.js (get it from nodejs.org).
  • If working behind a proxy, you need to configure it properly (HTTP_PROXY / HTTPS_PROXY / NO_PROXY environment variables)
  1. Clone the repository and navigate into it
git clone https://github.com/openui5/UI5Lab-library-simple
cd UI5Lab-library-simple
  1. Install all npm dependencies (also installs all bower dependencies)
npm install
  1. Run npm start to lint, build and run a local server (have a look into Gruntfile.js to see all the tasks).
npm start
  1. Choose one of the following entry points to test the library

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

Publishing a library project

  1. Maintain the index.json file in the test folder to contain all artifacts and samples. You can test how your library would appear in the browser locally by adding a reference to the libraries.json file

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

  1. Run grunt build 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
grunt build
  1. 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

Directions

  • Homepage - the single point of entry for UI5Lab
  • Documentation - project overview and tutorials
  • Browser - all UI5Lab libraries and examples
  • Demo - an example app consuming simple UI5Lab controls

Troubleshooting

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.

Contact

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

About

A simple control library that holds custom controls for testing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages