Allow BL modules to be NPM modules
Current Behavior
Blacklight modules have to be pulled in via GIT.
New Behavior
Allow Blacklight modules to be installed from NPM modules
Implementation
This will entail a pretty significant enhancement to the CLI module-builder.installModule command. Should look for an npm
property on the module in the site config. The value of the npm
property is expected to be the name of the NPM module.
Once the identified, all that the cli should need to do is resolve the path to that module (require.resolve(npmValue)
) then create a symlink from the relevant location in the blacklight_modules directory to the resolved npm path. If resolving the npm path throws an exception that should be thrown all the way to the top of the cli command.
We'll need to verify that the subsequent linking in the bl module relink
command continues to work as expected.