Building the JavaScript package

This page covers how to build the JavaScript package for SEAR from source.

Pre-requisites

The following software is needed to build:

Environment variables

There are 2 different ways of informing the build process where zoslib and OpenSSL are located. The first is if you have done a full zOpen install, then you can use the ZOPEN_ROOTFS environment variable. If you have installed OpenSSL and zoslib individually, i.e. in your home directory, then you can specify OPENSSL_ROOT and ZOSLIB_ROOT. If ZOPEN_ROOTFS is not specified then both OPENSSL_ROOT and ZOSLIB_ROOT must be set.

If using the user installation method you can put zoslib and OpenSSL in a folder in your z/OS Unix home directory. Then in your .zprofile or .profile point the to the relevant folders:

# SEAR dependencies
OPENSSL_ROOT = /home/<your RACF id>/software/openssl
ZOSLIB_ROOT = /home/<your RACF id>/software/zoslib

Make sure Node.js is installed and available in your path. You can check this by running node -v in a shell, which should return the version of Node.js installed.

Initiating the build process

First you will need to clone down the source code with git

git clone https://github.com/Mainframe-Renewal-Project/sear.git
npm run build

This site uses Just the Docs, a documentation theme for Jekyll.