Skip to content

StenaIT/express-nemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-nemo

A collection of middlewares for express

Packages

Semantic versioning

All packages are versioned using semver. In essence, having installed version 1.0.0, version 2.0.0 is to be considered breaking while 1.9.0 is not.

Installation example

npm install --save express-nemo-correlation-id

Usage example

const express = require('express')
const router = express.Router()
const middleware = require('express-nemo-correlation-id')

router.use(middleware)

Configuration

Some middlewares are configurable (see each package for configuration options).

Middleware scripts

Create

A script that generate the boilerplate for a new middleware.

./scripts/create-middleware express-nemo-[NAME]

Init

After git clone you can run npm init on all of the middlewares.

./scripts/init

Run test

This runs test on all of the middlewares.

./scripts/test

Publish

Prereq

  • User must be in the collaborators for "stena-it" organization
  • cd to the middleware you wish to publish

Update version

Update x in version x.0.0 (eg. breaking change was made)

npm version major

Update y in version 1.y.0 (eg. a feature was added )

npm version minor

Update z in version 1.0.z (eg. a fix internally was applied that do not effect the interface)

npm version patch

Git push

git add package.json
git commit -m "bump version to x.y.z"
git push

Publish the new version

npm publish