Ecologi UI
This library was generated with Nx.
Development
Run nx run ui:storybook
to run the Storybook dev server
Running unit tests
Run nx test ui
to execute the unit tests via Jest.
Publishing
Run nx publish ui --ver=<required-version> --tag=[custom-tag]
to publish to npm.
The publish target invokes the generated publish.mjs
script using nx:run-commands executor. The script does the following:
- Validate the
ver
argument against a simple SemVer RegExp. - Validate the
name
of the project against the workspace existing projects. - Update the
version
property in thepackage.json
of your project'sbuild.outputPath
- Invoke
npm publish
with the provided tag (default to next so you won't publish to latest by accident)
Make sure to authenticate with npm before running the publish target.