Hawkular UI Components is the home of UI Components that comprise the Hawkular console for Hawkular. This console is based on Hawt.io 2, which a javascript based client-side framework. The various directories underneath console directory are Hawt.io 2 plugins and the various plugins eventually compose a Hawkular console. This modular approach to creating hawtio console plugins allows us to create individual plugins that comprise a console or can easily be plugged into other Hawtio based consoles. The plugin system makes it easy to add/remove functionality (even dynamically).
This git repository is published as bower component and consumed by the Hawkular Console. Assets such as html/css/images/javascript can be published.
dist - directory for artifacts that need to published via bower package.
plugins - directory containing Hawt.io 2 plugins for Hawkular console. Multiple plugins can be packaged into a single bower component by adding the artefacts to the 'main' section of the bower.json file.
The general idea here being that Hawt.io UIs which are composed of plugins (that can swapped around like legos between the various other Hawt.io UIs)
Dev Installs allow for live previewing changes as development occurs. Its an interactive environment that allows one to prototype quickly, seeing their changes instantly when they save since the browser refreshes with the changes.
Assuming node.js/npm is already installed:
sudo npm install -g bower gulp typescript cd into the appropriate plugin directory `cd plugins/metrics` npm install bower install gulp In web browser: Navigate to http://localhost:2772/
For further detail the Hawt.io plugin structure is described here.
The publish builds process make content available to the consumer of the bower package (muliple consumers can be using this package).
cd into the appropriate plugin directory cd plugins/metrics
gulp build
This will build the assets into the hawkular-ui-components/dist directory. The artefacts are now ready for publishing via bower.
Note: if you are adding new assets make sure they get added to the main section of the ../bower.json file.
And from root of this git repo:
git ci -m "Checkin new artefacts" bower version [patch|release]
which bumps the version and tags it.
git push && git push --tags
This pushes and publishes the hawkular-ui-components bower component so it can be used in the Hawkular UI hawkular-console or any other Hawt.io 2 console.