0.0.11 • Published 4 years ago

payment-api-core-embonor v0.0.11

Weekly downloads
1
License
UNLICENSED
Repository
gitlab
Last release
4 years ago

Payment API Core

Core for Embonor Payment API services


Install and configure

# Package to manage multiple npm configurations
sudo npm i npmrc -g

# Configure default profile
npmrc -c default
npm config set registry https://registry.npmjs.org/
cat ~/.npmrcs/default
cat ~/.npmrc

# Configure embonor profile
npmrc -c embonor
npm config set registry https://registry.npmjs.org/
npm config set @embonor:registry https://test-embonor-885567047296.d.codeartifact.us-east-1.amazonaws.com/npm/test-payment-api-core/
cat ~/.npmrcs/embonor
cat ~/.npmrc


# First login
npmrc embonor
AWS_REGION=us-east-1 aws codeartifact login \
  --profile embonor \
  --tool npm --repository test-payment-api-core --domain test-embonor --domain-owner 885567047296
npm config set registry https://registry.npmjs.org/

# Test permission to read and publish from registry
npm -d ping

Publish a new version

# First, edit `package.json` and pump it to a new version

# Set correct profile
npmrc embonor

# Login to private registry
AWS_REGION=us-east-1 aws codeartifact login \
  --profile embonor \
  --tool npm --repository test-payment-api-core --domain test-embonor --domain-owner 885567047296

# Update default registry
npm config set registry https://registry.npmjs.org/

# Publish with correct scope
npm publish --scope=@embonor

Use in a package.json

# package.json

...

"dependencies": {
  ...
  "@embonor/payment-api-core": "^0.x"
},

...
0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago