1.0.37-revision.35 • Published 4 days ago

@scgdigital/scg-ui-package v1.0.37-revision.35

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

Welcome to SCG-UI-PACKAGE

This project was built with the sole purpose of centralizing UI components for CU/Loans projects across the board.

Tech Stack: React + TS + Vite.

Installation

To install, clone repository, and then, you can use pnpm, npm or yarn for module installation. Node version: >=18

$ pnpm install

OR

$ yarn install

OR

$ npm install

Usage

While working with the package, some basic working guidelines:

  1. Any newly created component should be directly exported out of src/index.ts file.
  2. All components should aim to be dumb and minimalistic as possible and be styled through our defined design system tokens LINK.
  3. Since we'd be using React, we'll be enforcing some design patterns:
    • Composition
    • SOLID principles
    • Preference over event-driven actions vs effects subscribed to state.
    • type safety for props and ability to extend native semantic element props to components.
    • Every component should be accompanied by a unit test.

To start the project in development, run:

$ <pnpm/npm> run dev
or
$ yarn dev

Package - updates and versioning

To issue new updates to the package, follow these steps:

  1. Lint Project, Remove unused dependencies. Carefully place dependencies in the right place (dependencies, devDependencies, peerDependencies)
  2. Attempt build locally until successfull build (pnpm run build). Optional: Create symlink of library with npm link and test library on other local project too.
  3. Update the package.json version following npmjs semantic versioning rules:

// Path: /package.json
{
"name": "@scgdigital/scg-ui-package",
"version": "--.--.--",
...
}
Code StatusStageRuleExample Version
First ReleaseNew ProductStart with 1.0.01.0.0
Backward compatible bug fixesPatch ReleaseIncrement the third digit1.0.1
Backward compatible new featuresMinor ReleaseIncrement the middle digit and reset the last digit to zero1.1.0
Changes that break backward compatibilityMajor ReleaseIncrement the first digit and reset the middle and last digits to zero2.0.0
  1. Finally, run pnpm run publish.
1.0.37

19 days ago

1.0.36-alpha.2

19 days ago

1.0.36-alpha.1

19 days ago

1.0.36

27 days ago

1.0.32

1 month ago

1.0.3-1.2

2 months ago

1.0.30-alpha.1

2 months ago

1.0.30

2 months ago

1.0.22

2 months ago

1.0.26

2 months ago

1.0.25

2 months ago

1.0.24

2 months ago

1.0.23

2 months ago

1.0.29

2 months ago

1.0.28

2 months ago

1.0.27

2 months ago

1.0.19

2 months ago

1.0.18

2 months ago

1.0.17

2 months ago

1.0.16

2 months ago

1.0.21

2 months ago

1.0.15

2 months ago

1.0.14

2 months ago

1.0.13

2 months ago

1.0.11

2 months ago

1.0.10

2 months ago

1.0.9

2 months ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago