Skip to content

Commit

Permalink
add bundle size and monorepo version shields (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
walaszczykm authored Jan 19, 2022
1 parent 0d03959 commit 832c5ca
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
> This project contains a set of libraries for adapting the [LiveChat Chat Widget](https://developers.livechat.com/open-chat-widget/) with certain frontend frameworks.
[![mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
![Github lerna version](https://img.shields.io/github/lerna-json/v/livechat/chat-widget-adapters?label=version)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
[![Check](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml/badge.svg?branch=master)](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml)

| 🛠 Framework | 📦 Library |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| <img widht="12px" height="12px" src ="https://cdn.iconscout.com/icon/free/png-256/react-1-282599.png" /> **React** | [@livechat/widget-react](https://www.npmjs.com/package/@livechat/widget-react) |
| <img widht="12px" height="12px" src ="https://cdn.iconscout.com/icon/free/png-256/vue-282497.png" /> **Vue** | [@livechat/widget-vue](https://www.npmjs.com/package/@livechat/widget-vue) |
| <img widht="12px" height="12px" src ="https://cdn.iconscout.com/icon/free/png-256/angular-226066.png" /> **Angular** | [@livechat/widget-angular](https://www.npmjs.com/package/@livechat/widget-angular) |
| 🛠 Framework | 📦 Library | ⚖️ Size |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| <img widht="12px" height="12px" src ="https://cdn.iconscout.com/icon/free/png-256/react-1-282599.png" /> **React** | [@livechat/widget-react](https://www.npmjs.com/package/@livechat/widget-react) | ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@livechat/widget-react?label=%20) |
| <img widht="12px" height="12px" src ="https://cdn.iconscout.com/icon/free/png-256/vue-282497.png" /> **Vue** | [@livechat/widget-vue](https://www.npmjs.com/package/@livechat/widget-vue) | ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@livechat/widget-vue?label=%20) |
| <img widht="12px" height="12px" src ="https://cdn.iconscout.com/icon/free/png-256/angular-226066.png" /> **Angular** | [@livechat/widget-angular](https://www.npmjs.com/package/@livechat/widget-angular) | ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@livechat/widget-angular?label=%20) |

## 📦 Installation

Expand Down
1 change: 1 addition & 0 deletions packages/widget-angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
> This library allows to render and interact with the [LiveChat Chat Widget](https://developers.livechat.com/open-chat-widget/) inside an [Angular](http://angular.io/) application.
[![mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
![Github lerna version](https://img.shields.io/github/lerna-json/v/livechat/chat-widget-adapters?label=version)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
[![Check](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml/badge.svg?branch=master)](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml)

Expand Down
1 change: 1 addition & 0 deletions packages/widget-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
> [LiveChat Chat Widget](https://developers.livechat.com/open-chat-widget/) adapters implementation core
[![mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
![Github lerna version](https://img.shields.io/github/lerna-json/v/livechat/chat-widget-adapters?label=version)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
[![Check](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml/badge.svg?branch=master)](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml)

Expand Down
1 change: 1 addition & 0 deletions packages/widget-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
> This library allows to render and interact with the [LiveChat Chat Widget](https://developers.livechat.com/open-chat-widget/) inside a [React](https://reactjs.org/) application.
[![mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
![Github lerna version](https://img.shields.io/github/lerna-json/v/livechat/chat-widget-adapters?label=version)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
[![Check](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml/badge.svg?branch=master)](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml)

Expand Down
1 change: 1 addition & 0 deletions packages/widget-vue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
> This library allows to render and interact with the [LiveChat Chat Widget](https://developers.livechat.com/open-chat-widget/) inside a [Vue 3](https://v3.vuejs.org/) application.
[![mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://choosealicense.com/licenses/mit/)
![Github lerna version](https://img.shields.io/github/lerna-json/v/livechat/chat-widget-adapters?label=version)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
[![Check](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml/badge.svg?branch=master)](https://github.com/livechat/chat-widget-adapters/actions/workflows/check.yml)

Expand Down
5 changes: 4 additions & 1 deletion scripts/publish.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import isCI from 'is-ci'

if (isCI) {
await Promise.all([$`yarn lint`, $`yarn test`, $`yarn build`])
await $`yarn lint`
await $`yarn build`
await $`yarn test`
await $`yarn e2e`
await $`lerna publish from-git --yes`
} else {
console.error('Publish script should be run only on CI')
Expand Down

0 comments on commit 832c5ca

Please sign in to comment.