NPM Packages
What packages should be in you be using and for what purpose?
Decisions
What selection criteria should you apply to your choice of packages?
Fix Compatibility Issues
Patch changes to a public package that can shared with your team.
Related
Jobs to be Done
Email
Link Shortener
WYSIWYG Editor
- Novel Notion-style WYSIWYG editor
Microservices
Using NPM Packages to share code between microservices with a public organisation.
- @stackmates/common
Install
Windows location
C:\Users\matt\AppData\Roaming\npm
Publishing
Go to common run cheat command
npm run pub
Go to consuming service and run following to get latest shared code.
npm update @stackmates/common
Clean Global Packages
In Windows delete the contents of:
C:\Users\username\AppData\Roaming\npm
As a shortcut enter %appdata%/npm in either the explorer, run prompt, or from the start menu.
Then delete everything from the following directory as well
C:\Users\[username]\node_modules