ExLibrisGroup / primo-explore-devenv

A node.js , gulp based development enviornment for Primo's new UI customizations (css,images,html and javascript)
BSD 3-Clause "New" or "Revised" License
114 stars 84 forks source link

create-package with institution code and alternate view-code #137

Open danizen opened 2 years ago

danizen commented 2 years ago

The command "gulp create-package" supports the --view flag, but not the --ve flag, so that it builds a customization package that does not contain the institution code (or maybe I call it wrong). However, when I run with gulp run --view DAN1 --ve, the institution code is supported.

Please upgrade the "gulp create-package" command to support taking both a source view code and target view code and packaging it with an alternate top directory.

Best practice would be to keep in Git only "official view codes", but to build for testing and demo a customization package named for a developer or feature. Our institution code is 01NLM_INST, so an example would be building from primo-explore/custom/01NLM_INST for a target customization package with a top-level directory 01NLM_INST-DAN1.

I have an Apache ant build file that does this, but I am not familiar enough with gulp tooling to want to develop a gulp/node way of doing the same.