@shokirovr16/frontend-library
v0.1.2
Published
CLI for bootstrapping comfort UI components into Vite + React + Tailwind projects.
Readme
@shokirovr16/frontend-library
Shared frontend package for:
- browser auth helpers used by the support/operator frontends
- CLI tooling for Comfort UI component bootstrap and maintenance
Package Identity
- npm package name:
@shokirovr16/frontend-library - auth exports:
@shokirovr16/frontend-library/auth,@shokirovr16/frontend-library/auth/react - CLI aliases:
frontend-library,cmfrt - generated config/doc filenames still remain
cmfrt.jsonandcmfrt-doc.md
Important:
- this repository is now published and consumed as
@shokirovr16/frontend-library - the old public
cmfrtpackage is not the source of truth for this repository anymore
Install
npm install @shokirovr16/frontend-libraryPeer dependencies:
react >= 18react-router-dom >= 6axios >= 1for the axios helper only
Auth Usage
import { initializeAuth } from '@shokirovr16/frontend-library/auth';
import { AuthProvider } from '@shokirovr16/frontend-library/auth/react';See src/auth/README.md for the auth runtime contract and examples.
CLI Usage
Both commands are valid after installation:
npx frontend-library init
npx cmfrt initThe CLI still manages the same generated files:
cmfrt.jsoncmfrt-doc.md
Local Workspace Development
Current workspace rule:
- cx-admin-frontend/package.json uses
"@shokirovr16/frontend-library": "file:../frontend-library"during active auth-library work - after changing this package, run
npm installin bothfrontend-libraryandcx-admin-frontend cx-admin-frontenddev mode usesvite --forceto avoid stale optimized deps while the local file dependency changes
Recommended local loop:
cd frontend-library
npm install
cd ../cx-admin-frontend
npm install
npm run buildPublishing
Publish this repository under the package name @shokirovr16/frontend-library.
Recommended release flow:
cd frontend-library
npm install
npm version patch
npm publish
git push origin main --tagsBefore publishing:
- make sure
git statusis clean - verify
npm pack --jsonproducesshokirovr16-frontend-library-<version>.tgz - verify
cx-admin-frontendstill builds against either the local file dependency or the published version
After publishing:
- Replace the local dependency in cx-admin-frontend/package.json with a semver range such as
"@shokirovr16/frontend-library": "^0.1.2". - Run
npm installincx-admin-frontend. - Run
npm run buildincx-admin-frontend.
