navcare.reactcontrols
v1.5.39
Published
common react controls to be used accross the navcare ecosystem ()[Dpublic
Readme
NaveCare.Controls
common react controls
- build to check for errors:
npm run-script build - transpile:
./node_modules/.bin/babel src --out-dir _dist --copy-files - commit all pending changes to git
- login to npm:
npm loginand then enter npm https://www.npmjs.com/ credentials - install np:
npm install --global np - publish using np:
np --any-branch --no-tests -no-2fa --branch develop
finally:
5) Update the package in you consuming project using: npm update navcare.reactcontrols
//-------------------------------------------------------------------------
DEBUGGING
- to debug this node package in your application without publishing/updating, you need to create a symlink (temporarily replacing use of npm pakcage with local package)
in the root of this (navcare.reactcontrols) project run
npm link. this will create a symlinkin your consuming project, run
npm link navcare.reactcontrols. this will replace your npm package (in node_modules) with a symlink to this project to be used directly.always run
./node_modules/.bin/babel src --out-dir _dist --copy-fileshere before rebuilding your consuming project to use latest changes.
NOTE: Whenever you run npm install or npm update in the consuming project, it will destroy the symlink and replace it with the npm package- if you want to re-add the symlink in that project, just run step 2 again.
