UI5Lab-library-simple
A simple control library that holds custom geometrical controls for testing the UI5Lab library structure.
The UI5Lab-browser is loaded as a dependency to display the library content for testing during development.
Feel free to adopt!
The repository is an example how to create custom OpenUI5 control library using Grunt & Bower based on the library documentation in the OpenUI5 repository.
TODO
- register the built library package so that it can be consumed somewhere else
- load browser as a built package and to the dependency tree work (is currently loaded from github directly as a proof of concept)
- remove explicit bower dependency to sap.f (is only needed by browser, not by library project itself)
Getting started
- 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)
- 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 bower dependencies)
npm install
- Run npm start to lint, build and run a local server (have a look into
Gruntfile.js
to see all the tasks).
npm start
- Open a test page in your browser: http://localhost:8080/test-resources/ui5lab/geometry/Square.html
Directions
Browser A sample browser showcasing artifacts from one or more libraries
Control page An HTML test page instantiating the control
Test page A simple QUnit test
Testuite A QUnit testsuite running all unit tests in this library
Contributing
Instructions how to connect to the community and contribute to the UI5lab project can be found in the main repository!
Credits
Thank you to @matz3 for your input and support!