Monorepo containing public npm packages and developer tools from the Red Hat Ansible UI team.
Packages are in the packages directory.
See CONTRIBUTING.md for development and pull request guidance.
The root of the project is generic containing shared configurations, and uses npm workspaces to automate scripts across workspaces.
-
Prerequisites
- Node
22.23.4or later in the 22.x line, or24.xand up (23.x is not supported) - NPM
8.xand up
- Node
-
Clone Repository
git clone git@github.com:ansible/ui-packages.git -
Install Package Dependencies
npm ci -
Run tests
npm test
Packages are in the packages directory.
When working with NPM packages, the packages can only be used by other packages after they have been built.
We are using NX to manage the repo.
NX supports having tasks depend on other tasks.
Using this functionality, the test task and depends on the build task.
The guarentees that the build happens before test which is important as the packages need to be built before they are used.
There is a top level watch that should be used to keep package builds up-to-date while working with them.
npm run watch
Examples are in the examples directory.
To run an example, change the the example directory and run npm start.
cd examples/ui-plugin-example-pf5
npm start
See RELEASING.md for package ownership and release instructions. The existing UI packages keep their published versions and release history; this repository no longer schedules releases for them. Future migrated packages use Changesets and require a changeset file for each release-worthy change.
Use Conventional Commits for repository commits. Commit type does not schedule a package release; Changesets files control releases for migrated packages.