Skip to content

Commit 6ff7061

Browse files
committed
build: add markdownlint tooling
1 parent 4398379 commit 6ff7061

File tree

11 files changed

+138
-162
lines changed

11 files changed

+138
-162
lines changed

.github/actions/file-diff/CHANGELOG.md

+10-26
Original file line numberDiff line numberDiff line change
@@ -21,49 +21,37 @@
2121
- [#2775](https://github.com/adobe/spectrum-css/pull/2775) [`2452637`](https://github.com/adobe/spectrum-css/commit/2452637d1179b9b2b025dafeb5834720712413d7) Thanks [@castastrophe](https://github.com/castastrophe)!
2222
- Dependency minor and patch updates to support new features in tools leveraged
2323

24-
<a name="2.0.5"></a>
25-
26-
##2.0.5
24+
## 2.0.5
2725

2826
🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
2927

3028
**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
3129

32-
<a name="2.0.4"></a>
33-
34-
##2.0.4
30+
## 2.0.4
3531

3632
🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
3733

3834
**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
3935

40-
<a name="2.0.3"></a>
36+
## 2.0.3
4137

42-
##2.0.3
43-
44-
🗓 2024-02-06
38+
🗓 2024-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
4539

4640
**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
4741

48-
<a name="2.0.2"></a>
49-
50-
##2.0.2
42+
## 2.0.2
5143

5244
🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
5345

5446
**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
5547

56-
<a name="2.0.1"></a>
57-
58-
##2.0.1
48+
## 2.0.1
5949

6050
🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
6151

6252
**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
6353

64-
<a name="2.0.0"></a>
65-
66-
#2.0.0
54+
## 2.0.0
6755

6856
🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
6957

@@ -75,17 +63,13 @@
7563

7664
- NEW: @spectrum-css/ui-icons package for all SVG icons in the UI set.
7765

78-
<a name="1.0.2"></a>
66+
## 1.0.2
7967

80-
##1.0.2
81-
82-
🗓 2023-11-15
68+
🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/[email protected]...@spectrum-tools/[email protected])
8369

8470
**Note:** Version bump only for package @spectrum-tools/gh-action-file-diff
8571

86-
<a name="1.0.1"></a>
87-
88-
##1.0.1
72+
## 1.0.1
8973

9074
🗓 2023-11-13
9175

.storybook/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ This release also includes:
6464
### Patch Changes
6565

6666
- [#3522](https://github.com/adobe/spectrum-css/pull/3522) [`7a47c22`](https://github.com/adobe/spectrum-css/commit/7a47c2266b6d0e8c99061fe85cba8d52684bae39) Thanks [@castastrophe](https://github.com/castastrophe)!
67+
6768
- Minor storybook updates and fixes including some whitespace changes.
6869

6970
A bug was fixed with the HTML code preview that was displaying duplicate line numbers.
@@ -89,6 +90,7 @@ This release also includes:
8990
### Major Changes
9091

9192
- [#3458](https://github.com/adobe/spectrum-css/pull/3458) [`e1b7102`](https://github.com/adobe/spectrum-css/commit/e1b71027f92ce18feb3a63c100d2b4871fc73b9f) Thanks [@castastrophe](https://github.com/castastrophe)!
93+
9294
- Update the Chromatic add-on to the currently maintained package:
9395

9496
- from "@chromaui/addon-visual-tests": "^1.0.0"
@@ -103,13 +105,15 @@ This release also includes:
103105
### Patch Changes
104106

105107
- [#3440](https://github.com/adobe/spectrum-css/pull/3440) [`6808c85`](https://github.com/adobe/spectrum-css/commit/6808c85295d472286c0a52e28d2279b2b5a16f92) Thanks [@castastrophe](https://github.com/castastrophe)!
108+
106109
- Fix an issue where "show code" was blocking loading in Storybook docs pages [CSS-1070]
107110

108111
## 10.12.0
109112

110113
### Minor Changes
111114

112115
- [#3477](https://github.com/adobe/spectrum-css/pull/3477) [`d52c701`](https://github.com/adobe/spectrum-css/commit/d52c70196bf2d17433c239313a82f00f75d77e79) Thanks [@castastrophe](https://github.com/castastrophe)!
116+
113117
- Update Storybook to leverage the new CSS bundled assets.
114118

115119
### Patch Changes
@@ -179,13 +183,15 @@ This release also includes:
179183
### Minor Changes
180184

181185
- [#3085](https://github.com/adobe/spectrum-css/pull/3085) [`11b2fc1`](https://github.com/adobe/spectrum-css/commit/11b2fc145283236a8a99c8387e805982a69813d6) Thanks [@castastrophe](https://github.com/castastrophe)!
186+
182187
- Adjust the way token and typography are loaded in preparation for S2.
183188

184189
## 10.10.0
185190

186191
### Minor Changes
187192

188193
- [#3067](https://github.com/adobe/spectrum-css/pull/3067) [`e1a7866`](https://github.com/adobe/spectrum-css/commit/e1a78669920f816966cc0249a7beed032e681b17) Thanks [@cdransf](https://github.com/cdransf)!
194+
189195
- Applies the sb-unstyled className to fix the version number alignment on Storybook docs pages.
190196

191197
## 10.9.1
@@ -257,6 +263,7 @@ This release also includes:
257263
### Minor Changes
258264

259265
- [#2867](https://github.com/adobe/spectrum-css/pull/2867) [`a0bd4eb`](https://github.com/adobe/spectrum-css/commit/a0bd4eb2ab43352c4bdedcb26f93138aacf99aee) Thanks [@castastrophe](https://github.com/castastrophe)!
266+
260267
- New feature: Add a look-through to the Spectrum Web Components Storybook project to create an easier connection between components that exist in CSS and those in SWC.
261268

262269
## 10.5.0
@@ -280,6 +287,7 @@ This release also includes:
280287
### Minor Changes
281288

282289
- [#2840](https://github.com/adobe/spectrum-css/pull/2840) [`84a70bb`](https://github.com/adobe/spectrum-css/commit/84a70bb076ac7afd15122d3b53299a4f1ccd1af3) Thanks [@castastrophe](https://github.com/castastrophe)!
290+
283291
- Tokens update to correct the background color used in documentation for static black.
284292

285293
Feature that updates storybook to move shared arg types to the global scope.
@@ -289,20 +297,23 @@ This release also includes:
289297
### Minor Changes
290298

291299
- [#2803](https://github.com/adobe/spectrum-css/pull/2803) [`2c5e5eb`](https://github.com/adobe/spectrum-css/commit/2c5e5ebc4d1dca38f877ad1e31f69315831c5717) Thanks [@castastrophe](https://github.com/castastrophe)!
300+
292301
- Feature to migrate Storybook to use Vite's builder instead of Webpack. This change reduces the configuration complexity with more built-in features that align with our needs.
293302

294303
## 10.1.0
295304

296305
### Minor Changes
297306

298307
- [#2821](https://github.com/adobe/spectrum-css/pull/2821) [`0129dca`](https://github.com/adobe/spectrum-css/commit/0129dca2e6f3eb90ff536344ba7f53249b4a0bfe) Thanks [@castastrophe](https://github.com/castastrophe)!
308+
299309
- Pull out decorators into their own files
300310

301311
## 10.0.5
302312

303313
### Patch Changes
304314

305315
- [#2820](https://github.com/adobe/spectrum-css/pull/2820) [`1711ef8`](https://github.com/adobe/spectrum-css/commit/1711ef8a7aa8da1858019b77ed52e1dd1b86d3bf) Thanks [@castastrophe](https://github.com/castastrophe)!
316+
306317
- Fixes for Storybook instance
307318

308319
- Bring back testing preview global toggle to toolbar after it was accidentally removed in a previous release
@@ -323,6 +334,7 @@ This release also includes:
323334
### Patch Changes
324335

325336
- [#2775](https://github.com/adobe/spectrum-css/pull/2775) [`2452637`](https://github.com/adobe/spectrum-css/commit/2452637d1179b9b2b025dafeb5834720712413d7) Thanks [@castastrophe](https://github.com/castastrophe)!
337+
326338
- Dependency minor and patch updates to support new features in tools leveraged
327339

328340
## 10.0.2
@@ -337,6 +349,7 @@ This release also includes:
337349
### Patch Changes
338350

339351
- [#2772](https://github.com/adobe/spectrum-css/pull/2772) [`344b8f4`](https://github.com/adobe/spectrum-css/commit/344b8f43d8b028c5e9ae87d1b7c10ffa257e7fa4) Thanks [@castastrophe](https://github.com/castastrophe)!
352+
340353
- Align versions to the latest local package version instead of fetching it externally
341354

342355
## 10.0.0

components/button/CHANGELOG.md

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
- [#3600](https://github.com/adobe/spectrum-css/pull/3600) [`bb845cb`](https://github.com/adobe/spectrum-css/commit/bb845cb2477d0c218a9675169f157b047c028222) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - Adjust border colors for static black and static white outline buttons, primary variant to match S2 spec.
88

9-
All notable changes to this project will be documented in this file.
10-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
11-
129
## 14.1.1
1310

1411
### Patch Changes

plugins/postcss-rgb-mapping/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
### Major Changes
66

77
- [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)!
8+
89
- Migrated the `postcss-rgb-mapping` package into the new `@spectrum-tools` namespace so updates may shipped and shared among other projects.

plugins/stylelint-no-missing-var/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
### Patch Changes
66

77
- [#3026](https://github.com/adobe/spectrum-css/pull/3026) [`544a803`](https://github.com/adobe/spectrum-css/commit/544a8039e84423a4db3137a0688f27b7812e291f) Thanks [@castastrophe](https://github.com/castastrophe)!
8+
89
- Dependency updates to align with versions used in the parent repository.
910

1011
## 2.0.0
1112

1213
### Major Changes
1314

1415
- [#2780](https://github.com/adobe/spectrum-css/pull/2780) [`7fea737`](https://github.com/adobe/spectrum-css/commit/7fea7371c810cd150272f8dfd964741250768714) Thanks [@castastrophe](https://github.com/castastrophe)!
16+
1517
- Upgrades packages to support Stylelint v16 and leveraging ESM. Drops support for v14 and v15 in this release.
1618

1719
## 1.3.2

tasks/compare-compiled-output.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async function generateDiff({
150150
...renderData,
151151
html,
152152
},
153-
join(outputPath, `index.html`)
153+
join(outputPath, "index.html")
154154
);
155155
}
156156

@@ -197,7 +197,8 @@ async function processComponent(
197197
const files =
198198
(await fg("**/*.css", { cwd: join(cwd, component, "dist") })) ?? [];
199199
files.forEach((file) => filelist.add(file));
200-
} else {
200+
}
201+
else {
201202
warnings.push(
202203
`${
203204
`${relative(pathing.root, join(cwd, component))}`.yellow
@@ -236,7 +237,8 @@ async function processComponent(
236237
(tarballFile.status && tarballFile.status !== 200)
237238
) {
238239
log.error(`Failed to fetch release content for ${pkg.name}`);
239-
} else {
240+
}
241+
else {
240242
await writeFile(tarballPath, await tarballFile.buffer(), {
241243
encoding: "utf-8",
242244
});
@@ -306,7 +308,6 @@ async function processComponent(
306308
}
307309

308310
async function processFile(filename, localPath, comparePath) {
309-
const componentName = localPath.split("/")[localPath.split("/").length - 2];
310311
const data = {};
311312

312313
// Look for the file locally
@@ -456,18 +457,18 @@ async function main(
456457
const { local, npm } = fileMap.get(file);
457458

458459
const indicatorColor = (localSize, tagSize = 0) => {
459-
if (localSize < tagSize) return 'green';
460-
if (localSize > tagSize) return 'red';
461-
else return 'gray';
460+
if (localSize < tagSize) return "green";
461+
if (localSize > tagSize) return "red";
462+
else return "gray";
462463
};
463464

464465
const localSize = local?.size && `${bytesToSize(local.size)}`[indicatorColor(local.size, npm?.size)];
465466
const tagSize = npm?.size && `${bytesToSize(npm.size)}`.gray;
466467

467468
log.writeTable([
468469
`${file}`.green,
469-
localSize ?? `** removed **`.red,
470-
tagSize ?? `** new **`.yellow,
470+
localSize ?? "** removed **".red,
471+
tagSize ?? "** new **".yellow,
471472
], { min: 25, max: maxColumnWidth + 15 });
472473

473474
if (local?.size && npm?.size && local.size !== npm.size) {

tools/generator/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
### Minor Changes
66

77
- [#3139](https://github.com/adobe/spectrum-css/pull/3139) [`5c8eb7f`](https://github.com/adobe/spectrum-css/commit/5c8eb7f1960fe3a72889dea0c3421c9fbb99d781) Thanks [@castastrophe](https://github.com/castastrophe)!
8+
89
- Update mdx template to include TaggedReleases and ComponentDetails
910

1011
## 4.0.2
1112

1213
### Patch Changes
1314

1415
- [#2775](https://github.com/adobe/spectrum-css/pull/2775) [`2452637`](https://github.com/adobe/spectrum-css/commit/2452637d1179b9b2b025dafeb5834720712413d7) Thanks [@castastrophe](https://github.com/castastrophe)!
16+
1517
- Dependency minor and patch updates to support new features in tools leveraged
1618

1719
## 4.0.1
1820

1921
### Patch Changes
2022

2123
- [#2726](https://github.com/adobe/spectrum-css/pull/2726) [`add5ac2`](https://github.com/adobe/spectrum-css/commit/add5ac24d0cfea2baba4a2ceab8e71f07473797e) Thanks [@castastrophe](https://github.com/castastrophe)!
24+
2225
- The plopfile entry point leveraged a require.resolve in an ES module format without setting up the require functionality first
2326

2427
## 4.0.0

tools/generator/templates/index.css.hbs

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
*/
1313

1414
.spectrum-{{ pascalCase name }} {
15-
// color: var(--highcontrast-{{ folderName }}-content-color-default, var(--mod-{{ folderName }}-content-color-default, var(--spectrum-{{ folderName }}-content-color-default)));
16-
17-
&.spectrum-{{ pascalCase name }}--sizeS {}
18-
&.spectrum-{{ pascalCase name }}--sizeL {}
19-
&.spectrum-{{ pascalCase name }}--sizeXL {}
15+
// color: var(--highcontrast-{{ folderName }}-content-color, var(--mod-{{ folderName }}-content-color, var(--spectrum-{{ folderName }}-content-color)));
2016
}
2117

18+
.spectrum-{{ pascalCase name }}--sizeS {}
19+
.spectrum-{{ pascalCase name }}--sizeL {}
20+
.spectrum-{{ pascalCase name }}--sizeXL {}
21+
2222
@media (forced-colors: active) {
2323
.spectrum-{{ pascalCase name }} {
24-
--highcontrast-{{ folderName }}-content-color-default: CanvasText;
24+
--highcontrast-{{ folderName }}-content-color: CanvasText;
2525

2626
forced-color-adjust: none;
2727
}

ui-icons/CHANGELOG.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
# Change log
22

3-
All notable changes to this project will be documented in this file.
4-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5-
6-
<a name="1.1.2"></a>
7-
83
## 1.1.2
94

10-
🗓 2024-02-06
5+
🗓 2024-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/[email protected]...@spectrum-css/[email protected])
116

127
**Note:** Version bump only for package @spectrum-css/ui-icons
138

14-
<a name="1.1.1"></a>
15-
169
## 1.1.1
1710

1811
🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/[email protected]...@spectrum-css/[email protected])
1912

2013
**Note:** Version bump only for package @spectrum-css/ui-icons
2114

22-
<a name="1.1.0"></a>
23-
2415
## 1.1.0
2516

2617
🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/[email protected]...@spectrum-css/[email protected])
@@ -29,8 +20,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
2920

3021
- **ui-icons:**graduate to 1.0 release ([#2366](https://github.com/adobe/spectrum-css/issues/2366))([afd369a](https://github.com/adobe/spectrum-css/commit/afd369a))
3122

32-
<a name="0.1.0"></a>
33-
3423
## 0.1.0
3524

3625
🗓 2023-12-12

0 commit comments

Comments
 (0)