1.4.1 • Published 2 months ago

@exdbch/components-lib v1.4.1

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

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

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
  1. Install dependencies
npm install
  1. Update the componentes or create a new component

  2. Compile library

npm run build
  1. Commit and push to Bitbucket
git add *
git commit -m 'description of this commit'
git push
  1. 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

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

1.4.1

2 months ago

1.4.0

2 months ago

1.3.0

5 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.0.0

6 months ago