2.0.0 • Published 2 years ago
ritzau-menu-lib v2.0.0
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.jsonand update the section Changelogs as well with the added functionality. - Create a
.tgzfile usingnpm pack - Copy the
.tgzfile to the project where you want to test. - Point your command terminal to the folder where
.tgzfile is located and runnpm install .\ritzau-menu-lib-1.0.4.tgzIf 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
appBasePathadded. It is necessary for logout url as it communicates with the BFF.
version 2.0.0
- "vite": "^5.2.9",
- "typescript": "^5.2.2"