# @exdbch/components-lib

> This library is created to be used in the base boilerplate of our projects through a package.

Latest version **1.10.0** (published 2024-12-05) · 0 weekly downloads

## Install

```sh
npm install @exdbch/components-lib
pnpm add @exdbch/components-lib
yarn add @exdbch/components-lib
bun add @exdbch/components-lib
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.10.0 |
| Published | 2024-12-05 |
| First published | 2023-11-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 235.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | exdbch |

## Links

- npm: https://www.npmjs.com/package/@exdbch/components-lib
- npm.io page: https://npm.io/package/@exdbch/components-lib

## Dependencies (6)

- [vue](https://npm.io/package/vue.md) ^3.2.37
- [tw-blue](https://npm.io/package/tw-blue.md) latest
- [tw-green](https://npm.io/package/tw-green.md) latest
- [vee-validate](https://npm.io/package/vee-validate.md) ^4.7.3
- [@fdograph/rut-utilities](https://npm.io/package/@fdograph/rut-utilities.md) ^1.4.0
- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) ^3.2.0

## Recent versions

- 1.10.0 (latest) — 2024-12-05
- 1.9.9 — 2024-11-25
- 1.9.8 — 2024-11-25
- 1.9.7 — 2024-11-19
- 1.9.6 — 2024-09-13
- 1.9.5 — 2024-09-13
- 1.9.4 — 2024-09-13
- 1.9.3 — 2024-09-13
- 1.9.2 — 2024-09-13
- 1.9.1 — 2024-09-12
- 1.9.0 — 2024-09-09
- 1.8.1 — 2024-07-26
- 1.7.0 — 2024-07-08
- 1.6.6 — 2024-07-04
- 1.6.5 — 2024-07-03
- … 12 more at https://npm.io/package/@exdbch/components-lib/versions

## README

# How works?

This library is created to be used in the base boilerplate of our projects through a package.

Here the transversal components used in the projects are created, deleted and updated.

## Create Components

To create a component, just go to the "components" folder, create a new folder with the name of the component to be created and within it create the component with the same name in vue format.

Once we create the component and we are ready, we must export.
For that you have to go to the index.js file
and import the component and export it.

### Example

```javascript
import BchButton from "./components/BchButton/BchButton.vue";
import BchAccordion from "./components/BchAccordion/BchAccordion.vue";
export { BchButton, BchAccordion };
```

## Compile Library

Once we create or update the necessary components, we must compile our library so that it can later be uploaded updated.

For this we must write in the console: `npm run build`

# How update:

1. Clone repository:

```
git clone http://bitbucket.bch.bancodechile.cl:7990/scm/pp/doc-library_components.git
```

2. Install dependencies

```
npm install
```

3. Update the componentes or [create a new component](#create-components)

4. [Compile library](#compile-library)

```
npm run build
```

5. Commit and push to Bitbucket

```
git add *
git commit -m 'description of this commit'
git push
```

6. Upload the changes to NPM
   To upload the changes to npm, we need update the version of this library (patch / minor / major) and publish in npm.
   For this we have 3 executable commands with `npm run`

`npm run patch`

`npm run minor`

`npm run major`

7. Push new version to Bitbucket

```
git push
```

You should only run one of these (depending on the changes made or added)

---
_Source: https://npm.io/package/@exdbch/components-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
