Skip to main content

NPM Packages

Tables

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.

Jobs to be Done

Email

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

Node MSA Publish Common Code

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

Middleware Async