Common code, utilities, and constants used across the Tekton Dashboard
To install @tektoncd/dashboard-utils
in your project, you will need to run the following
command using npm:
npm install -S @tektoncd/dashboard-utils
If you prefer Yarn, use the following command instead:
yarn add @tektoncd/dashboard-utils
You will also need to install react-router-dom@5
.
To use a function or value, you can import it directly from the package:
import { resourceNameRegex } from '@tektoncd/dashboard-utils';
resourceNameRegex.test(myResourceName)
We're always looking for contributors to help us fix bugs, build new features, or help us improve the project documentation. If you're interested, definitely check out our Contributing Guide! 👀
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License. Code samples are licensed under the Apache 2.0 License.