Extract code and templates from the Primo NUI.
Starting with a new environment is hard expecially if the developer documentation is lacking. Luckily this is JavaScript and ExLibris is kind enough to leave the source-maps on the server.
!!!You need a node.js(7.6 or better) that support async/await!!!
Install:
yarn global add primo-extract
or
npm install primo-extract -g
Usage:
primoExtract --primo=https://your.primo.instance --outDir=/directory/to/exported/source
Example: Getting the code from the Primo QA environment
primoExtract --primo=https://primo-qa.hosted.exlibrisgroup.com --outDir=./primoSourceCode