ritzau-menu-lib
v2.0.0
Published
Beta Version: Vite React Typescript left sidebar menu for Ritzau
Downloads
13
Readme
How to?
Project files are found in lib
folder
Test locally by running npm run dev
. App.tsx has a bootstrap-based nav-bar where the menu icon is found.
Testing locally as a package
- Build the project
npm run build
- Remember to update the verion in
package.json
and update the section Changelogs as well with the added functionality. - Create a
.tgz
file usingnpm pack
- Copy the
.tgz
file to the project where you want to test. - Point your command terminal to the folder where
.tgz
file is located and runnpm install .\ritzau-menu-lib-1.0.4.tgz
If the .tgz file is located in another directory, run command pointing to that directory f.eks.,
npm install ../../ritzau-menu-lib-1.0.4.tgz
Publishing to npm
- Build the library
npm run build
- Build a tarball (.tgz) to test locally
npm pack
- Publish to npm
npm publish
- must have a account in the npm
Changelogs
version 1.0.4
- Styling reflecting .net framework based RitzauMenu nuget.
- Uniform custom scrollbar for both Webkit-based and Firefox.
- Callback for closing menu in mobile based on close button.
version 1.0.5
- Added logout url
- Extra props
appBasePath
added. It is necessary for logout url as it communicates with the BFF.
version 2.0.0
- "vite": "^5.2.9",
- "typescript": "^5.2.2"