项目作者: hawtio

项目描述 :
Core integration plugins for Hawtio: Apache ActiveMQ, Camel, Karaf, OSGi, and Spring Boot
高级语言: TypeScript
项目地址: git://github.com/hawtio/hawtio-integration.git
创建时间: 2015-04-22T13:34:21Z
项目社区:https://github.com/hawtio/hawtio-integration

开源协议:Apache License 2.0

下载


hawtio-integration

Test

This project provides ActiveMQ, Camel, Karaf and Spring Boot plugins for hawtio.

Installation

  1. yarn add @hawtio/integration

Set up development environment

Clone the repository

  1. git clone https://github.com/hawtio/hawtio-integration
  2. cd hawtio-integration

Install development tools

Install project dependencies

  1. yarn install

Developing

Run the web application

  1. yarn start

Change the default proxy port

To proxy to a local JVM running on a different port than 8282 specify the --port CLI arguement to gulp:

  1. yarn start -- --port=8181

Output build to a different directory

When developing this plugin in a dependent console you can change the output directory where the compiled .js and .css go. Just use the --out flag to set a different output directory, for example:

  1. gulp watch --out=../fabric8-console/libs/hawtio-integration/dist/

Whenever the build completes the compiled .js file will be put into the target directory. Don’t forget to first do a gulp build without this flag before committing changes!

Turn on source maps generation for debugging TypeScript

If you want to debug .ts using a browser developer tool such as Chrome DevTools, pass the --sourcemap flag to gulp:

  1. gulp --sourcemap

Do not use this flag when you are committing the compiled .js file, as it embeds source maps to the output file. Use this flag only during development.

Upgrade Apache Camel

In order to support the latest Camel meta model in Camel plugin, you need to update the camelModel.js with the latest camel-catalog. To do so, first update the Camel version in the camel-model-generator pom.xml:

  1. <version.org.apache.camel>3.14.2</version.org.apache.camel>

then run the following yarn script:

  1. yarn update-camel-model