cdm-ts v2.64.0
cdm-distribution-ts
A repository to provide an npm package of cdm typescript distribution
Build & Run
docker build --build-arg CDM_VERSION=2.35.4 --build-arg USER=vincent --build-arg PASS=^uHXfIraULye --build-arg EMAIL=vincent.juge@gmail.com .
How-to
General
For your npm command line client to work with Artifactory, you first need to set the default npm registry with an Artifactory npm repository using the following command:
npm config set registry https://regnosys.jfrog.io/artifactory/api/npm/npm/
If you are working with scoped packages, run the following command:
npm config set @<SCOPE>:registry https://regnosys.jfrog.io/artifactory/api/npm/npm/
There are two ways to authenticate your npm client against Artifactory: using the npm login command or using basic authentication.
Using npm login
Run the following command in your npm client. When prompted, provide your Artifactory login credentials:
npm login
Using basic authentication
Alternatively, you can paste the following into the ~/.npmrc file (in Windows %USERPROFILE%/.npmrc):
_auth = dmluY2VudDpBUDdrU2tQazVndVZ5NzNmdG9aa3BYck44VGo=
email = vjuge@fragmos-chain.com
always-auth = true
If you are working with scoped packages, while using basic authentication, you also need to paste the following into the ~/.npmrc file (in Windows %USERPROFILE%/.npmrc):
@<SCOPE>:registry=https://regnosys.jfrog.io/artifactory/api/npm/npm/
//regnosys.jfrog.io/artifactory/api/npm/npm/:_password=QVA3a1NrUGs1Z3VWeTczZnRvWmtwWHJOOFRq
//regnosys.jfrog.io/artifactory/api/npm/npm/:username=vincent
//regnosys.jfrog.io/artifactory/api/npm/npm/:email=vjuge@fragmos-chain.com
//regnosys.jfrog.io/artifactory/api/npm/npm/:always-auth=true
Deploy
To deploy your package to an Artifactory repository you can either add the following to the package.json file:
"publishConfig":{"registry":"https://regnosys.jfrog.io/artifactory/api/npm/npm/"}
And then you can simply run the default npm publish command:
npm publish
Or provide the local repository to the npm publish command:
npm publish --registry https://regnosys.jfrog.io/artifactory/api/npm/npm/
Resolve
After adding Artifactory as the default repository you can install a package using the npm install command:
npm install <PACKAGE_NAME>
To install a package by specifying Artifactory repository use the following npm command:
npm install <PACKAGE_NAME> --registry https://regnosys.jfrog.io/artifactory/api/npm/npm/
4 years ago