In the project directory, you can run:
yarn run storybook
Runs the react storybook.
Open http://localhost:6006 to view it in the browser.
The page will reload if you make edits.
Log in to npm using the command
NOTE: NEVER update the package version yourself. ALWAYS do so through npm.
npm version patch -m "Upgrade to %s for reasons"
0.0.1 -> 0.0.2
npm version minor
0.1.5 -> 0.2.0
npm version major
1.3.7 -> 2.0.0
npm version commands will increase the version number and automatically take care of
git add/commit for you.
npm publishcommand, you should see the updated version almost instantly on npmjs website.
If it doesn't show up, please double check cache. If clearing cache doens't work, try searching the package directly from npmjs.com search bar, that might show the latest change.
To update consumers of midas-coreui to the latest version (e.g., mona), the below command is usually what you want:
yarn upgrade midas-coreui@~YOUR_NEW_VERSION_NUMBER
If you use a different command (there's lots of options), make sure to double-check that the
package.json for the consumer you're updating has actually gone to what you want. Some commands will locally update your package but not alter the
package.json file, so double-check.