@tumbaland/components
v1.15.0
Published
A shared React component library for Tumbaland frontend applications, built with TypeScript and Material-UI.
Readme
@tumbaland/components
A shared React component library for Tumbaland frontend applications, built with TypeScript and Material-UI.
Development
Running Storybook
Start the interactive component development environment:
npm run storybook:devBuilding Documentation
Building the Library
Compile TypeScript and create distribution files:
npm run buildPublishing the Library
- NPM Account: You need an NPM account with publish permissions
- NPM Token: Set up authentication token for automated publishing
- Organization: The package is published under
@tumbalandscope
Authentication Setup
Create an NPM token with publish permissions:
npm login # or npm token create --read-only=falseSet the token as an environment variable:
export NPM_TOKEN=your_token_hereConfigure npm to use the token:
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
Publishing Process
The library uses standard-version for automated versioning and changelog generation. See the
root README's "Commits & Releases" section for the full,
authoritative process. Summary:
npm run releaseThis bumps version from conventional commits since the last components-v* tag, writes
CHANGELOG.md, commits chore(release): X.Y.Z, tags it components-vX.Y.Z, builds, and
publishes to npm with public access. Always release through this script — never hand-edit
version and run npm publish directly, or the package, changelog, and tags drift apart.
Beta Release
npm run release:betaThis publishes a beta version (e.g., 1.0.0-beta.0) with the beta tag.
Manual Publishing Steps
If you need to publish manually:
Build the library:
npm run buildTest the build:
npm pack # Test the generated .tgz file in a test projectPublish:
npm publish --access public
License
MIT
