UI works with results of hermione-plugins-profiler.
Installation:
npm i -S hermione-profiler-ui
It's possible to use it through API:
import { generateReport } from "hermione-profiler-ui";
//...
const pathsToProfileResults = [
"http://host.com/file1.json", // It can be url and server has to be able to serve with CORS
"/file2.json", // Or file can be located near to the report folder
];
const targetDir = "./ui-report";
await generateReport(pathsToProfileResults, targetDir);
npx hermione-profiler-ui generate -output "./ui-report" --plugin-profiles "http://host.com/file1.json" "/file2.json"
To run dev-server with fixtures:
npm run start
To run unit:
npm run test:unit
To run unit in watch-mode:
npm run test:unit -- --watchAll
To run linters:
npm run lint
To fix problems: To run linters:
npm run fix
To commit changes use above commands:
git add .
npm run commit # to commit changes in interactive mode
npm run release
And follow instructions.