Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Shared components across several apps

Notifications You must be signed in to change notification settings

mejuri-inc/mejuri-components

Repository files navigation

mejuri-components

Mejuri components library

NPM JavaScript Style Guide

Install

Add dependency to your package

"@mejuri-inc/mejuri-components": "git+ssh://[email protected]: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 ©

About

Shared components across several apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages