1.0.16 • Published 8 months ago

@kwoitecki-playground/common v1.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

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\"
1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago