@47deg/robeen 中文文档教程
Robeen
Hood JMH 基准测试的图形伴侣。
Preview
Installation
Load it from a CDN
- Put a script tag similar to this
<script src='https://unpkg.com/@47deg/robeen'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Host your own instance
- Run
npm install @47deg/robeen --save
- Put a script tag similar to this
<script src='node_modules/@47deg/robeen/dist/robeen.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Usage
加载到您的站点后,您可以像这样简单地使用它:
<fortyseven-robeen data-url="https://my-server/my-jmh-data-file.json"></fortyseven-robeen>
请检查该 URL 是否是 JMH 格式数据文件所在的有效端点可以取自。
Contributing or modifying this web component
Robeen 是用 Stencil 构建的,Stencil 是一种使用 Web Components 构建快速 Web 应用程序的编译器。
Stencil 组件只是 Web 组件,因此它们可以在任何主要框架中工作,或者根本不需要框架。 要开始使用它,请将此 repo 克隆到一个新目录:
git clone https://github.com/47deg/robeen.git robeen
cd robeen
git remote rm origin
并运行:
npm install
npm start
要构建用于生产的组件,请运行:
npm run build
要运行组件的单元测试,请运行:
npm test
需要帮助吗? 在此处查看我们的文档。
Robeen
The graphical companion for Hood JMH benchmarks.
Preview
Installation
Load it from a CDN
- Put a script tag similar to this
<script src='https://unpkg.com/@47deg/robeen'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Host your own instance
- Run
npm install @47deg/robeen --save
- Put a script tag similar to this
<script src='node_modules/@47deg/robeen/dist/robeen.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Usage
Once loaded on your site, you can simply use it like this:
<fortyseven-robeen data-url="https://my-server/my-jmh-data-file.json"></fortyseven-robeen>
Please check that the URL is a valid endpoint where a JMH shaped data file can be fetched from.
Contributing or modifying this web component
Robeen is built with Stencil, a compiler for building fast web apps using Web Components.
Stencil components are just Web Components, so they work in any major framework, or with no framework at all. To start playing with it, clone this repo to a new directory:
git clone https://github.com/47deg/robeen.git robeen
cd robeen
git remote rm origin
and run:
npm install
npm start
To build the component for production, run:
npm run build
To run the unit tests for the components, run:
npm test
Need help? Check out our docs here.