@ids-group-ltd/ids-design-system 0.2.1 → 0.2.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 +1 -68
- package/package.json +1 -5
- package/styles/_typography.scss +3 -2
package/README.md
CHANGED
|
@@ -68,73 +68,6 @@ import { ButtonComponent } from '@ids-group-ltd/ids-design-system';
|
|
|
68
68
|
export class ExampleComponent {}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
## Development
|
|
72
|
-
|
|
73
|
-
This repo contains the library (`src/`) and a documentation app (`ds-docs/`). The
|
|
74
|
-
docs app is published live at https://ids-ds.proto.ids-group.co.uk/.
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
npm run build # build the library into dist/ds
|
|
78
|
-
npm start # serve the docs app
|
|
79
|
-
npm run build:docs # build the docs app
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Releasing
|
|
83
|
-
|
|
84
|
-
Releases follow [SemVer](https://semver.org): `fix` → patch, new backwards-compatible
|
|
85
|
-
features → minor, breaking changes (API or visual) → major. A new Angular major
|
|
86
|
-
always means a new package major. See `CHANGELOG.md` for history.
|
|
87
|
-
|
|
88
|
-
Before releasing, add your notes to the `## Unreleased` section of `CHANGELOG.md`
|
|
89
|
-
on `main`. Then release one of two ways.
|
|
90
|
-
|
|
91
|
-
### Option A — one-click in Bitbucket (recommended)
|
|
92
|
-
|
|
93
|
-
In the Bitbucket UI: **Pipelines → Run pipeline → branch `main` →** pick
|
|
94
|
-
`release-patch`, `release-minor`, `release-major`, or `release-beta`. CI bumps the
|
|
95
|
-
version, stamps the CHANGELOG, commits, and pushes `main` + a `vX.Y.Z` tag — no
|
|
96
|
-
local tooling needed. That tag push then triggers the `Publish to npm` pipeline,
|
|
97
|
-
which builds and publishes (so you'll see two runs: the release, then the publish).
|
|
98
|
-
`## Unreleased` must be filled first; preflight fails the pipeline early otherwise.
|
|
99
|
-
|
|
100
|
-
### Option B — locally
|
|
101
|
-
|
|
102
|
-
With a clean, in-sync `main`:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
npm run release:patch # 0.1.0 -> 0.1.1 bugfixes
|
|
106
|
-
npm run release:minor # 0.1.0 -> 0.2.0 new components/inputs/tokens
|
|
107
|
-
npm run release:major # 0.x -> 1.0.0 breaking changes
|
|
108
|
-
npm run release:beta # 0.2.0 -> 0.2.1-beta.0 pre-release
|
|
109
|
-
|
|
110
|
-
git push origin main --follow-tags # the tag push triggers CI publish
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
Each `release:*` runs preflight checks first (must be on a clean, in-sync `main`
|
|
114
|
-
with a non-empty `## Unreleased` CHANGELOG section), bumps the version, stamps the
|
|
115
|
-
CHANGELOG (`## Unreleased` → `## x.y.z — date`, opening a fresh Unreleased), and
|
|
116
|
-
creates a `release: x.y.z` commit plus a `vX.Y.Z` git tag locally — it does **not**
|
|
117
|
-
publish. The tag push to Bitbucket runs `bitbucket-pipelines.yml`, which builds
|
|
118
|
-
`dist/ds` and publishes it through `infrastructure/scripts/publish.sh`. That script
|
|
119
|
-
refuses to publish if the tag does not match the built version or if the version is
|
|
120
|
-
already on npm.
|
|
121
|
-
|
|
122
|
-
Bypass preflight in emergencies with `SKIP_PREFLIGHT=1 npm run release:patch`.
|
|
123
|
-
|
|
124
|
-
CI auth uses two Secured repository variables: `NPM_TOKEN` (npm granular access
|
|
125
|
-
token, read+write on `@ids-group-ltd`, "Bypass 2FA" enabled) for publishing, and —
|
|
126
|
-
for the one-click pipelines only — `RELEASE_TOKEN`, a Bitbucket Repository Access
|
|
127
|
-
Token with `repository:write` used to push the bump commit and tag back to `main`.
|
|
128
|
-
|
|
129
|
-
Manual publish (fallback, requires an authenticated npm session):
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
npm run publish:manual
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
Pre-releases: `npm run release:beta` bumps to `x.y.z-beta.N`; the matching tag
|
|
136
|
-
publishes under the `next` dist-tag (never `latest`).
|
|
137
|
-
|
|
138
71
|
## License
|
|
139
72
|
|
|
140
|
-
|
|
73
|
+
MIT © IDS Group Ltd
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ids-group-ltd/ids-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "IDS Group Angular design system: components, tokens, themes",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://bitbucket.org/itband/ids-design-system.git"
|
|
9
|
-
},
|
|
10
6
|
"homepage": "https://ids-ds.proto.ids-group.co.uk/",
|
|
11
7
|
"keywords": [
|
|
12
8
|
"angular",
|
package/styles/_typography.scss
CHANGED
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
.t-xs-bold { font: var(--font-weight-bold) var(--font-size-xs)/var(--line-height-base) var(--font-sans); }
|
|
19
19
|
.t-overline { font: var(--font-weight-bold) var(--font-size-2xs)/var(--line-height-base) var(--font-sans); letter-spacing: var(--letter-spacing-wider); text-transform: uppercase; color: var(--text-tertiary); }
|
|
20
20
|
.t-caption { font: var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans); color: var(--text-tertiary); }
|
|
21
|
-
.t-mono
|
|
22
|
-
.t-mono-
|
|
21
|
+
.t-mono { font: var(--font-weight-medium) var(--font-size-mono)/var(--line-height-base) var(--font-mono); }
|
|
22
|
+
.t-mono-inline { font: var(--font-weight-regular) var(--font-size-mono)/1 var(--font-mono); background: var(--surface-secondary); color: var(--text-primary); padding: 1px var(--space-1); border-radius: var(--radius-sm); }
|
|
23
|
+
.t-mono-block { font: var(--font-weight-regular) var(--font-size-mono)/var(--line-height-loose) var(--font-mono); background: var(--surface-secondary); border: var(--border-width-default) solid var(--border-divider); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
|
|
23
24
|
|
|
24
25
|
.sr-only {
|
|
25
26
|
position: absolute !important;
|