1.0.14 • Published 5 years ago

@gagan-personal/common v1.0.14

Weekly downloads
15
License
MIT
Repository
-
Last release
5 years ago

Custom npm package

Description

  • Common Authorization code
  • Imported via package.json
  • Wrrten in typescript, however porduction code is converted in Javascript

Login to npm

  1. npm login
  2. Enter username and password

Steps to Publish

  1. Makre sure you are logged In
  2. git init
  3. Commit your files
  4. Publish package npm publish --access public

Dependencies

Production --save

  • @types/cookie-session
  • @types/express
  • @types/jsonwebtoken
  • cookie-session
  • express
  • express-validator
  • jsonwebtoken
  • node-nats-streaming

Dev --save-dev

  • typescript
  • del-cli - Allows cleaning build riectory before every build

Exporting libraries

  • Update package.json with target source code
{
  "main": "./build/index.js",
  "types": "./build/index.d.ts",
  "files": [
    "./build/**/*"
  ]
}

Creating a patch upgrade (Bugfixes)

  • npm version patch
  • Must be executed everytime we publsh an upgrade

Steps

  1. npm version patch
  2. npm run build
  3. npm publish

NOTE

  • Always make sure a new build is published using npm run publish after making any changes
  • Other microservices use this library as a npm package
1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.10

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago