Search code examples
gitxpageslotus-notesyarnpkgpackage-managers

Use of a package manager with Domino and locations of node modules


I am considering using a package manager to avoid registration of external resources in GIT. But I wonder how I should setup my projects?

Nowadays in GIT I have my NSF code registrered in an ODP folder e.g. projectx\ODP\ e.g. projectx\OODP\WebContent\DataTables

When I run a package manager I notice that the resources are stored in the folder that contains the package.json file in folder nodes_modules.

Does this mean that I should store the package.json file in the WebContent folder or can I specify in the package file where the modules should be installed?

To avoid the files are registered for source control in GIT I should register them in the .gitignore file and state ODP\WebContent* but this would also keep the package.json file from source control which I would like to have under source control.

All confusing to me.

Can someone tell me how you have setup your workspace for XPages development using a package manager and GIT?


Solution

  • You can define the installation directory in yarn https://www.caxy.com/blog/how-set-custom-location-nodemodules-path-yarn