@kwoitecki-playground/common
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

Code sharing and reuse between services

create a public organisation

https://www.npmjs.com/ -> Add Organisation kwoitecki-playground

publishing npm modules

$ mkdir common
$ cd common
$ npm init -y

$ npm login
$ npm publish --access public

Project Setup

$ tsc --init
$ npm install typescript del-cli --save-dev

$ npm run build

Publish command

$ npm version patch
$ npm run build
$ npm publish

$ npm run pub

$ cd ..
$ skaffold dev

Relocating shared code

$ npm install express express-validator cookie-session jsonwebtoken @types/cookie-session @types/express @types/jsonwebtoken

$ npm install node-nats-streaming

$ npm run pub

$ cd ../auth/
$ npm install @kwoitecki-playground/common

# Update common dependency
$ npm update @kwoitecki-playground/common

# verfiy version
$ k get pods
$ k exec -it auth-depl-76c876cd5-xpv5d sh

$ cat node_modules/@kwoitecki-playground/common/package.json | grep \"version\"

Readme

Keywords

none

Package Sidebar

Install

npm i @kwoitecki-playground/common

Weekly Downloads

4

Version

1.0.16

License

ISC

Unpacked Size

18.8 kB

Total Files

44

Last publish

Collaborators

  • kwoitecki