1.12.0 • Published 19h ago
@tumbaland/components
Licence
MIT
Version
1.12.0
Deps
3
Size
31 kB
Vulns
0
Weekly
0
@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:dev
Building Documentation
Building the Library
Compile TypeScript and create distribution files:
npm run build
Publishing 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.
Production Release
npm run release
This command will:
- Bump version according to conventional commits
- Skip CHANGELOG.md
- Skip git tag
- Build the library (
npm run build) - Publish to npm with public access
Beta Release
npm run release:beta
This 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