ui5-cc-helloworld
v0.0.2
Published
(add custom control description here)
Downloads
2
Readme
UI5 custom control ui5-cc-ui5con24.cc
(brief description)
Install
$> yarn add ui5-cc-ui5con24.cc
# or
$> npm install ui5-cc-ui5con24.cc
Included controls
(control)
: (description)- properties: -
- aggregations: -
Usage
define the dependeny in
$yourapp/package.json
// it is already in "dependencies" after installation "ui5": { "dependencies": [ // ... "ui5-cc-ui5con24.cc", // ... ] }
declare the namespace in your XML view and use the custom control from that namespace
<mvc:View ... xmlns:ui5con24.cc="cc.ui5con24.cc" ...> <ui5con24.cc:Control /> </mvc:View>
How it works
(describe how it, well, works)
Build time (in apps)
Use ui5 build --all
to produce a deployable version of your app including ui5-cc-ui5con24.cc
and its’ control(s).
Other than that, nothing specific to note for using ui5-cc-ui5con24.cc
in builds in UI5 apps.
Tests
The test
folder contains a minimal UI5 app requiring ui5-cc-ui5con24.cc
.
For testing manually, do:
$> yarn test:manual # runs ui5 serve
# now point a browser to http://localhost:8080
The livereload middleware is included, so changes to the test app get reloaded immediately.
A full automated test suite is setup with Jest + puppeteer, starting ui5 serve
and running all /test/**/*.test.js
:
$> cd test/ui5-app
$> yarn # for installing runtime dependencies
$> cd ..
$> yarn test
# sample output:
...
License
This work is dual-licensed under Apache 2.0 and the Derived Beer-ware License. The official license will be Apache 2.0, but ultimately you can choose between one of them if you use this work.
When you like this stuff, buy you a drink when you see the person.