0.1.66 • Published 4 months ago

ctc-component-library v0.1.66

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

ctc-component-library

Requirements

node v18.19.1 or above

Install

npm install --save @ctc-component-library

Run local

- npm install
- npm run storybook

To publish

- Increase the version on package.json
- Push to main branch, the actions to publish and deploy will be run

Material Symbols demo

- Here you can preview all the icons
https://marella.me/material-symbols/demo/

- Usage
https://github.com/marella/material-symbols/tree/main/material-symbols#usage

Installing yalc on Your Machine

Using NPM:

npm i yalc -g

Using Yarn:

yarn global add yalc

Updating the Library with yalc

Once yalc is installed, navigate to the root of the library and execute:

ctc-component-library % yarn yalc:update

Then, in the root of the project where the library will be installed (e.g., Backoffice), execute:

ctc-backoffice-frontend % yalc add ctc-component-library

Using the Components

Now you can use the components, for example:

import { Button } from 'ctc-component-library';

const SomeForm: React.FC = () => (
  <Button type="primary" text="Send" />
);

This allows you to have the library installed locally, make changes or adjustments to any component in the library, and validate them immediately without having to go through the process of pull requests, merges, and deployment to NPM.

Updating the Library in a Project

After making a change to a component in the library, and if you need to see this change in the project consuming the library, you must build and update the package in the local yalc repository. Then, remove and add the library package again in the consuming project. To do this:

Navigate to the root of the library and execute:

ctc-component-library % yarn yalc:update

Navigate to the root of the project consuming the library (e.g., Backoffice) and to remove the library, execute:

ctc-backoffice-frontend % yalc remove ctc-component-library

Then, to add the library, execute:

ctc-backoffice-frontend % yalc add ctc-component-library
0.1.63

4 months ago

0.1.64

4 months ago

0.1.65

4 months ago

0.1.66

4 months ago

0.1.62

4 months ago

0.1.61

5 months ago

0.1.57

5 months ago

0.1.58

5 months ago

0.1.59

5 months ago

0.1.60

5 months ago

0.1.56

5 months ago

0.1.52

5 months ago

0.1.53

5 months ago

0.1.54

5 months ago

0.1.55

5 months ago

0.1.50

5 months ago

0.1.51

5 months ago

0.1.49

6 months ago

0.1.46

6 months ago

0.1.47

6 months ago

0.1.48

6 months ago

0.1.42

6 months ago

0.1.43

6 months ago

0.1.44

6 months ago

0.1.45

6 months ago

0.1.41

6 months ago

0.1.40

6 months ago

0.1.38

6 months ago

0.1.39

6 months ago

0.1.36

6 months ago

0.1.37

6 months ago

0.1.32

6 months ago

0.1.33

6 months ago

0.1.34

6 months ago

0.1.35

6 months ago

0.1.31

6 months ago

0.1.30

7 months ago

0.1.29

7 months ago

0.1.27

7 months ago

0.1.28

7 months ago

0.1.26

8 months ago

0.1.23

8 months ago

0.1.24

8 months ago

0.1.25

8 months ago

0.1.20

8 months ago

0.1.21

8 months ago

0.1.22

8 months ago

0.1.18

8 months ago

0.1.19

8 months ago

0.1.14

9 months ago

0.1.15

9 months ago

0.1.16

9 months ago

0.1.17

9 months ago

0.1.13

9 months ago

0.1.12

9 months ago

0.1.11

9 months ago

0.1.10

10 months ago

0.1.0

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.9

10 months ago

0.1.4

10 months ago

0.1.3

11 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.0.8

12 months ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago