Skip to content

Developing the SDK

Josh Weisman edited this page Mar 30, 2022 · 6 revisions

Publishing

  • angular-lib
    • cd angular-lib # update version
    • npm install
    • npm run build
    • cd dist/
    • npm publish --access public
  • base
    • cd base # version + dependency version
    • cd base # update dependency
    • npm publish --access public
  • cli
    • cd cli # version + dependency version
    • npm publish --access public

The publish.sh script in the root does all of these actions.

Other commands

npm install -g @exlibris/exl-cloudapp-cli
npm update -g @exlibris/exl-cloudapp-cli

npm unpublish -f @exlibris/[email protected]

npm config delete @exlibris:registry
npm config set @exlibris:registry http://localhost:4873

npm adduser --registry http://localhost:4873

To develop angular-lib:

angular-lib
npm run build
cp -r dist/ ~/Sites/repos/alma-csv-user-load/node_modules/@exlibris/exl-cloudapp-angular-lib/

To manually update S3

eca build --base-href /jweisman/alma-refine/
aws s3 sync build/ s3://apps01.ext.exlibrisgroup.com/jweisman/alma-touchnet-cloudapp --region=eu-central-1 --delete --profile cloudapps

aws s3 cp s3://apps01.ext.exlibrisgroup.com/apps.json ~/Downloads/apps.json --region=eu-central-1 --profile cloudapps
aws s3 cp ~/Downloads/apps.json s3://apps01.ext.exlibrisgroup.com/apps.json --region=eu-central-1 --profile cloudapps
Clone this wiki locally