2.7.2 • Published 5 months ago

@zoovu/session-storage v2.7.2

Weekly downloads
1
License
SEE LICENSE IN LI...
Repository
-
Last release
5 months ago

Runner Session Storage (session-storage)

Initial setup

yarn

In order to successfully fetch dependencies you need to be logged in to our Nexus npm and be connected through VPN.

Development

Please inspect package.json scripts. In general you turn on compiler in watch mode

yarn run compile-watch

And run tests using

yarn run test

Note that in order to have tests working you need to have Redis running at localhost:6379

You can start redis by executing:

docker run -p 6379:6379 -d redis

Production package

We do not have an automated pipeline as we only update this package once a year. And next to that, we have plans to not use session storage in redis anymore, but localstorage (browser side), which would make this package obsolete.

To test and build production-ready packages without using docker, run:

yarn run build

In order to successfully run those tests you need redis running on port 6379.

To really build and publish the package:

export NPM_TOKEN=
./docker-build.sh {your npm token here}

You can find your npm token in your home directory in the ~/.npmrc file. After you login to our nexus via npm login, content of the .npmrc file that you have in your home directory should look something like this:

@zoovu:registry=https://nexus.zoovu.io/nexus/repository/smartassistant-npm/
//nexus.zoovu.io/nexus/repository/smartassistant-npm/:_authToken=NpmToken.abd-dddsf-sdfsdfsdf-sdf

Npm token is NpmToken.abd-dddsf-sdfsdfsdf-sdf in that example