@smartyweb/ui 1.0.0 → 1.0.2
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 +33 -19
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/ui.css +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -69,53 +69,67 @@ src/
|
|
|
69
69
|
|
|
70
70
|
This package uses [Changesets](https://github.com/changesets/changesets) for versioning and changelog management.
|
|
71
71
|
|
|
72
|
-
### 1
|
|
72
|
+
### Step 1 — On your feature branch
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
Create a changeset to describe the change and bump type:
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
npm run changeset
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
This opens an interactive prompt
|
|
80
|
+
This opens an interactive prompt:
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
1. **Which packages changed?** — select `@smartyweb/ui`
|
|
83
|
+
2. **Bump type?** — `patch` for fixes/styles, `minor` for new features, `major` for breaking changes
|
|
84
|
+
3. **Summary?** — plain English description (goes into the changelog)
|
|
83
85
|
|
|
84
|
-
|
|
86
|
+
Then apply the version bump immediately on the same branch:
|
|
85
87
|
|
|
86
88
|
```bash
|
|
87
|
-
npx changeset version
|
|
89
|
+
npx changeset version # bumps package.json and updates CHANGELOG.md
|
|
88
90
|
```
|
|
89
91
|
|
|
90
|
-
Commit
|
|
92
|
+
Commit everything and push:
|
|
91
93
|
|
|
92
94
|
```bash
|
|
93
95
|
git add .
|
|
94
96
|
git commit -m "chore: version bump"
|
|
97
|
+
git push
|
|
95
98
|
```
|
|
96
99
|
|
|
97
|
-
###
|
|
100
|
+
### Step 2 — Open a PR and merge to master
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
Open a PR from your feature branch → `master` on Bitbucket. The PR will include both your code changes and the version bump. Get it reviewed and merged.
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
### Step 3 — Publish to npm (automated)
|
|
105
|
+
|
|
106
|
+
Publishing happens automatically when the PR merges to `master`. Bitbucket Pipelines runs the build and `npm run release` (`changeset publish`), then pushes the git tags.
|
|
104
107
|
|
|
105
|
-
|
|
108
|
+
No manual action needed after merge.
|
|
109
|
+
|
|
110
|
+
<details>
|
|
111
|
+
<summary>Manual publish (if running outside CI)</summary>
|
|
106
112
|
|
|
107
113
|
```bash
|
|
114
|
+
git checkout master && git pull
|
|
115
|
+
npm run build
|
|
108
116
|
export NPM_TOKEN=<your-token>
|
|
109
|
-
npm run
|
|
117
|
+
npm run release # runs `changeset publish` → publishes to npm and creates git tags
|
|
118
|
+
git push --tags
|
|
110
119
|
```
|
|
111
120
|
|
|
112
|
-
|
|
121
|
+
</details>
|
|
113
122
|
|
|
114
|
-
###
|
|
123
|
+
### CI Setup (one-time)
|
|
115
124
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
125
|
+
Two secured repository variables must be configured under **Bitbucket repo → Settings → Pipelines → Repository variables**:
|
|
126
|
+
|
|
127
|
+
| Variable | Where to get it |
|
|
128
|
+
| ----------------- | ------------------------------------------------------------- |
|
|
129
|
+
| `NPM_TOKEN` | npmjs.org → Account → Access Tokens → type: "Automation" |
|
|
130
|
+
| `BITBUCKET_TOKEN` | Bitbucket repo → Settings → Access tokens (Repository: Write) |
|
|
131
|
+
|
|
132
|
+
Mark both as **Secured** so they are masked in logs.
|
|
119
133
|
|
|
120
134
|
## Architecture
|
|
121
135
|
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a="_hExtra_1j1q6_1",o={hExtra:a};function c({as:s="h1",children:t,className:n}){const r=[o.hExtra,n].filter(Boolean).join(" ");return e.jsx(s,{className:r,children:t})}const h="_h1_66uga_1",u={h1:h};function i({children:s,className:t}){return e.jsx("h1",{className:`${u.h1}${t?` ${t}`:""}`,children:s})}exports.H1=i;exports.HExtra=c;
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
const a = "
|
|
2
|
+
const a = "_hExtra_1j1q6_1", h = {
|
|
3
3
|
hExtra: a
|
|
4
4
|
};
|
|
5
|
-
function
|
|
5
|
+
function l({ as: s = "h1", children: t, className: o }) {
|
|
6
6
|
const r = [h.hExtra, o].filter(Boolean).join(" ");
|
|
7
7
|
return /* @__PURE__ */ n(s, { className: r, children: t });
|
|
8
8
|
}
|
|
9
|
-
const c = "
|
|
9
|
+
const c = "_h1_66uga_1", e = {
|
|
10
10
|
h1: c
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function _({ children: s, className: t }) {
|
|
13
13
|
return /* @__PURE__ */ n("h1", { className: `${e.h1}${t ? ` ${t}` : ""}`, children: s });
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
_ as H1,
|
|
17
|
+
l as HExtra
|
|
18
18
|
};
|
package/dist/ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._hExtra_1j1q6_1{font-family:TT Hoves Pro,sans-serif;font-weight:600;font-size:96px;line-height:106px;letter-spacing:-.03em;font-feature-settings:"dlig" 1;margin:0}@media(max-width:767px){._hExtra_1j1q6_1{font-size:56px;line-height:62px;letter-spacing:-.02em}}._h1_66uga_1{font-family:TT Hoves Pro,sans-serif;font-weight:500;font-size:64px;line-height:64px;letter-spacing:-.02em;font-feature-settings:"dlig" 1;margin:0}@media(max-width:767px){._h1_66uga_1{font-size:44px;line-height:44px;letter-spacing:-.01em}}
|