@babylonlabs-io/core-ui 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -6
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
## Installation
|
|
13
|
+
## 👨🏻💻 Installation
|
|
14
14
|
|
|
15
15
|
To install the package, run the following command:
|
|
16
16
|
|
|
@@ -18,13 +18,42 @@ To install the package, run the following command:
|
|
|
18
18
|
npm i @babylonlabs-io/core-ui
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## 📝 Commit Format & Automated Releases
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
This project uses [**Conventional Commits**](https://www.conventionalcommits.org/en/v1.0.0/)
|
|
24
|
+
and [**semantic-release**](https://semantic-release.gitbook.io/) to automate
|
|
25
|
+
versioning, changelog generation, and npm publishing.
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
### ✅ How It Works
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
1. All commits must follow the **Conventional Commits** format.
|
|
30
|
+
2. When changes are merged into the `main` branch:
|
|
31
|
+
- `semantic-release` analyzes commit messages
|
|
32
|
+
- Determines the appropriate semantic version bump (`major`, `minor`, `patch`)
|
|
33
|
+
- Tags the release in Git with release change log
|
|
34
|
+
- Publishes the new version to npm
|
|
35
|
+
|
|
36
|
+
### 🧱 Commit Message Examples
|
|
37
|
+
|
|
38
|
+
```console
|
|
39
|
+
feat: add support for slashing script
|
|
40
|
+
fix: handle invalid staking tx gracefully
|
|
41
|
+
docs: update README with commit conventions
|
|
42
|
+
refactor!: remove deprecated method and cleanup types
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
> **Note:** For breaking changes, add a `!` after the type (
|
|
46
|
+
> e.g. `feat!:` or `refactor!:`) and include a description of the breaking
|
|
47
|
+
> change in the commit body.
|
|
48
|
+
|
|
49
|
+
### 🚀 Releasing
|
|
50
|
+
|
|
51
|
+
Just commit your changes using the proper format and merge to `main`.
|
|
52
|
+
The CI pipeline will handle versioning and releasing automatically — no manual
|
|
53
|
+
tagging or version bumps needed.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## 📖 Storybook
|
|
28
57
|
|
|
29
58
|
To view the component library, run:
|
|
30
59
|
|
|
@@ -32,7 +61,7 @@ To view the component library, run:
|
|
|
32
61
|
npm run storybook
|
|
33
62
|
```
|
|
34
63
|
|
|
35
|
-
## Usage
|
|
64
|
+
## 💪 Usage
|
|
36
65
|
|
|
37
66
|
Provide examples of how to use the library in a project. Include code snippets and explanations.
|
|
38
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonlabs-io/core-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"require": "./dist/index.cjs.js",
|
|
18
18
|
"import": "./dist/index.es.js"
|
|
19
19
|
},
|
|
20
|
-
"./tailwind": "./tailwind.config.js"
|
|
20
|
+
"./tailwind": "./tailwind.config.js",
|
|
21
|
+
"./style.css": "./dist/style.css"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"dev": "npm run storybook",
|
|
@@ -41,9 +42,12 @@
|
|
|
41
42
|
"yup": "^1.5.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@changesets/cli": "^2.27.9",
|
|
45
45
|
"@chromatic-com/storybook": "^3.2.2",
|
|
46
|
+
"@commitlint/cli": "^19.8.0",
|
|
47
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
46
48
|
"@eslint/js": "^9.13.0",
|
|
49
|
+
"@semantic-release/github": "^11.0.2",
|
|
50
|
+
"@semantic-release/npm": "^12.0.1",
|
|
47
51
|
"@storybook/addon-essentials": "^8.4.2",
|
|
48
52
|
"@storybook/addon-interactions": "^8.4.2",
|
|
49
53
|
"@storybook/addon-onboarding": "^8.4.2",
|
|
@@ -63,12 +67,13 @@
|
|
|
63
67
|
"eslint-plugin-storybook": "^0.11.0",
|
|
64
68
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
65
69
|
"globals": "^15.11.0",
|
|
66
|
-
"husky": "^9.1.
|
|
70
|
+
"husky": "^9.1.7",
|
|
67
71
|
"lint-staged": "^15.2.10",
|
|
68
72
|
"postcss": "^8.4.47",
|
|
69
73
|
"prettier": "^3.3.3",
|
|
70
74
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
|
71
75
|
"react-icons": "^5.3.0",
|
|
76
|
+
"semantic-release": "^24.2.3",
|
|
72
77
|
"storybook": "^8.4.2",
|
|
73
78
|
"storybook-dark-mode": "^4.0.2",
|
|
74
79
|
"tailwindcss": "^3.4.14",
|