Trrack stands for reproducible tracking. Originally Trrack is a web-based provenance tracking library that can track application state in directed provenance graph. The core library is framework-agnostic and can be used in any JavaScript/TypeScript application. The React visualization package provides components for rendering the provenance graph in a React application.
@trrack/coreCore action-based provenance tracking library.@trrack/vis-reactReact components for rendering a Trrack provenance graph.
Install the core package:
yarn add @trrack/coreInstall the React visualization package with our peer dependencies:
yarn add react react-dom @trrack/core @trrack/vis-reactFor core usage, start with our documentation.
Install dependencies:
yarn installRun the example apps:
yarn dev:react
yarn dev:dummy
yarn dev:lineup
yarn dev:docsRun all dev targets at once:
yarn devBuild the published packages:
yarn buildRun package tests:
yarn testGenerate package coverage reports:
yarn test:coverageCoverage reports are written to coverage/core and coverage/vis-react.
Run package linting:
yarn lintPackages are published from a GitHub Release via .github/workflows/build_test_release.yml.
Release flow:
- Create a GitHub Release from the commit you want to publish.
- Tag it as
v<version>orv<version>-<prerelease>. - Mark prerelease releases as prereleases in GitHub.
- Automatically generate release notes with the "Generate release notes" button in GitHub, or write your own release notes.
- Publish the release.
The release workflow installs dependencies, builds and tests the packages, verifies package contents with npm pack --dry-run, and publishes both @trrack/core and @trrack/vis-react at the same version number.