anarock-widgets
v1.0.71
Published
π¦ @anarock/widgets
Readme
π¦ @anarock/widgets
A collection of reusable React UI widgets for the Anarock Dashboard.
π Development Workflow 1οΈβ£ Install Dependencies npm install
2οΈβ£ Run Playground (for previewing widgets in real-time) cd playground npm run dev
Opens local dev server.
Any changes to widgets will hot-reload in the browser.
3οΈβ£ Build the Package npm run build
Creates the dist/ folder with production-ready files:
dist/index.js (CJS build)
dist/index.esm.js (ESM build)
dist/index.d.ts (TypeScript types, if using TS)
4οΈβ£ Update Version
Every time you change widgets, bump the version in package.json:
{ "name": "@anarock/widgets", "version": "1.0.1" }
Follow semver :
Patch β bug fixes (1.0.1)
Minor β new widgets/features (1.1.0)
Major β breaking changes (2.0.0)
5οΈβ£ Publish to GitHub (Private)
Publish:
git push
6οΈβ£ Install in Another Project
From GitHub Repo:
npm install git+https://github.com/vinayak-vayuz/anarock-dashboard-widgets.git
From Local Tarball (if testing without publish):
npm pack npm install ../anarock-widgets/anarock-widgets-1.0.0.tgz
π Notes
Ensure node_modules and dist are not ignored in .gitignore.
Widgets should not hardcode fonts. Use the global font defined in src/styles/global.css.
Keep react and react-dom as peerDependencies (not bundled).
Always test in the playground before publishing.
