1.5.0 • Published 3 years ago

mejuri-components v1.5.0

Weekly downloads
134
License
ISC
Repository
github
Last release
3 years ago

mejuri-components

Mejuri components library

NPM JavaScript Style Guide

Install

Add dependency to your package

"@mejuri-inc/mejuri-components": "git+ssh://git@github.com:mejuri-inc/mejuri-components.git#{branch-name}"

Add private mejuri-inc github package registry

Create .yarnrc file in the root of your project with the content below:

"@mejuri-inc:registry" "https://npm.pkg.github.com"

Login to registry using with your own github token. See https://help.github.com/es/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#

Run

yarn install

Develop

to link this library in local we found the best alternative is to use https://github.com/whitecolor/yalc

npm install -g yalc

In this repository folder run:

yalc publish

In the repository requiring this library as dependency run:

yalc link @mejuri-inc/mejuri-components

When developing, if you made changes to the mejuri-components repo, run:

npm run publish:local

it will automatically update the dependency

Deploy

In case you are not logged:

$ npm login --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
> Email: PUBLIC-EMAIL-ADDRESS

Update version number in package.json and then run:

npm publish
npm run deploy

License

MIT ©