Skip to content

Commit 853fc83

Browse files
committed
build: migrate from nx to workspaces
1 parent 3bbc0e5 commit 853fc83

File tree

721 files changed

+9930
-10555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

721 files changed

+9930
-10555
lines changed

.changeset/giant-scissors-protect.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-tools/theme-alignment": major
3+
---
4+
5+
Initial release of the stylelint theme alignment tool. This package uses the base file (themes/spectrum.css) for a Spectrum CSS component as a "source of truth" and validates the sub-themes (i.e., themes/express.css) use only selectors and custom properties defined in the base file.

.eslintrc

-22
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,6 @@
5555
"jsonc/sort-keys": [0]
5656
}
5757
},
58-
{
59-
"files": ["project.json"],
60-
"rules": {
61-
"jsonc/sort-keys": [
62-
"warn",
63-
{
64-
"pathPattern": "^$",
65-
"order": [
66-
"$schema",
67-
"name",
68-
"tags",
69-
"implicitDependencies",
70-
"targets"
71-
]
72-
},
73-
{
74-
"pathPattern": ".*",
75-
"order": { "type": "asc" }
76-
}
77-
]
78-
}
79-
},
8058
{
8159
"files": ["package.json"],
8260
"rules": {

.github/actions/file-diff/package.json

+13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@
55
"description": "A GitHub Action to compare asset sizes and generate a diff if changes are found.",
66
"license": "Apache-2.0",
77
"author": "Adobe",
8+
"homepage": "https://opensource.adobe.com/spectrum-css",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/adobe/spectrum-css.git",
12+
"directory": ".github/actions/file-diff"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/adobe/spectrum-css/issues"
16+
},
817
"main": "index.js",
18+
"files": [
19+
"*.md",
20+
"package.json"
21+
],
922
"dependencies": {
1023
"@actions/artifact": "^2.2.0",
1124
"@actions/core": "^1.11.1",

.github/dependabot.yml

-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ updates:
4141
patterns:
4242
- "@commitlint/*"
4343
- "commitlint"
44-
nx-ecosystem:
45-
patterns:
46-
- "@nx/*"
47-
- "nx"
4844

4945
- package-ecosystem: "github-actions"
5046
directory: "/"

.github/workflows/build.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ name: Validate successful build
1010
# to the workflow run. This allows us to download the compiled assets and use
1111
# them in other workflows.
1212
#
13-
# Note: we need to skip the nx cache b/c it does not contain the compiled assets
14-
#
1513

1614
on:
1715
workflow_dispatch:

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dist
1010

1111
temp
1212
.npmrc*
13-
.nx
1413
.env
1514
.tmp
1615
npm-debug.log*
@@ -19,7 +18,6 @@ npm-debug.log*
1918
lerna-debug.log
2019
yarn-error.log
2120
package-lock.json
22-
.nx
2321

2422
# Storybook build output
2523
.storybook/storybook-static

.storybook/package.json

+35-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,21 @@
2525
},
2626
"module": "main.js",
2727
"scripts": {
28-
"build": "cross-env NODE_ENV=development storybook build --config-dir . --output-dir ./storybook-static"
28+
"build": "cross-env NODE_OPTIONS=\"--no-warnings\" storybook build --config-dir . --output-dir ./storybook-static",
29+
"build:docs": "cross-env NODE_OPTIONS=\"--no-warnings\" storybook build --config-dir . --output-dir ../dist",
30+
"build:ci": "cross-env NODE_OPTIONS=\"--no-warnings\" storybook build --config-dir .",
31+
"clean": "rimraf ./storybook-static && test -d ./storybook-static && echo \"Error: ./storybook-static directory could not be removed\" && exit 1 || exit 0",
32+
"clean:docs": "rimraf ../dist && test -d ../dist && echo \"Error: ../dist directory could not be removed\" && exit 1 || exit 0",
33+
"format": "npm-run-all --parallel format:*",
34+
"format:styles": "stylelint --cache --allow-empty-input --fix assets/*.css --ignore-pattern dist",
35+
"format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.{js,json} **/*.js --ignore-pattern \"!.storybook/\"",
36+
"format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.{md,mdx} **/*.{md,mdx}",
37+
"lint": "npm-run-all --parallel lint:*",
38+
"lint:styles": "stylelint --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables assets/*.css --ignore-pattern dist",
39+
"lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.{js,json} **/*.js --ignore-pattern \"!.storybook/\" || exit 0",
40+
"start": "cross-env NODE_OPTIONS=\"--no-warnings\" WATCH_MODE=true storybook dev --port 8080 --config-dir .",
41+
"test": "chromatic --only-changed --build-script-name build --junit-report",
42+
"test:scope": "chromatic --build-script-name build --junit-report --only-story-names"
2943
},
3044
"dependencies": {
3145
"@adobe/spectrum-css-workflow-icons": "^1.5.4",
@@ -70,5 +84,24 @@
7084
"rollup-plugin-postcss-lit": "^2.1.0",
7185
"storybook": "^8.4.7",
7286
"vite": "^5.4.11"
73-
}
87+
},
88+
"repository": {
89+
"type": "git",
90+
"url": "https://github.com/adobe/spectrum-css.git",
91+
"directory": ".storybook"
92+
},
93+
"bugs": {
94+
"url": "https://github.com/adobe/spectrum-css/issues"
95+
},
96+
"keywords": [
97+
"design-system",
98+
"spectrum",
99+
"spectrum-css",
100+
"adobe",
101+
"adobe-spectrum"
102+
],
103+
"files": [
104+
"*.md",
105+
"package.json"
106+
]
74107
}

.storybook/project.json

-124
This file was deleted.

components/accordion/metadata/metadata.json

+13
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,22 @@
1717
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemContent",
1818
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader",
1919
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader + .spectrum-Accordion-itemIconContainer",
20+
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader.is-focus-visible",
21+
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader.is-hover",
2022
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader:focus-visible",
2123
".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader:hover",
24+
".spectrum-Accordion-item.is-open .spectrum-Accordion-itemHeader.is-hover",
2225
".spectrum-Accordion-item.is-open .spectrum-Accordion-itemHeader:hover",
2326
".spectrum-Accordion-item.is-open > .spectrum-Accordion-itemContent",
2427
".spectrum-Accordion-item.is-open > .spectrum-Accordion-itemHeading > .spectrum-Accordion-itemIconContainer > .spectrum-Accordion-itemIndicator",
2528
".spectrum-Accordion-item.is-open > .spectrum-Accordion-itemIconContainer > .spectrum-Accordion-itemIndicator",
2629
".spectrum-Accordion-item:first-child",
2730
".spectrum-Accordion-itemContent",
2831
".spectrum-Accordion-itemHeader",
32+
".spectrum-Accordion-itemHeader.is-active",
33+
".spectrum-Accordion-itemHeader.is-focus-visible",
34+
".spectrum-Accordion-itemHeader.is-hover",
35+
".spectrum-Accordion-itemHeader.is-hover + .spectrum-Accordion-itemIconContainer",
2936
".spectrum-Accordion-itemHeader:active",
3037
".spectrum-Accordion-itemHeader:after",
3138
".spectrum-Accordion-itemHeader:focus",
@@ -40,6 +47,8 @@
4047
".spectrum-Accordion:lang(ja)",
4148
".spectrum-Accordion:lang(ko)",
4249
".spectrum-Accordion:lang(zh)",
50+
".spectrum.spectrum--express",
51+
".spectrum.spectrum--legacy",
4352
"[dir=\"rtl\"] .spectrum-Accordion",
4453
"[dir=\"rtl\"] .spectrum-Accordion-itemIconContainer"
4554
],
@@ -189,6 +198,10 @@
189198
"--spectrum-font-size-500",
190199
"--spectrum-font-size-700",
191200
"--spectrum-gray-200",
201+
<<<<<<< HEAD
202+
=======
203+
"--spectrum-gray-300",
204+
>>>>>>> edd10946b (build: migrate from nx to workspaces)
192205
"--spectrum-gray-900-rgb",
193206
"--spectrum-line-height-100",
194207
"--spectrum-logical-rotation",

components/accordion/package.json

+29-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "The Spectrum CSS accordion component",
55
"license": "Apache-2.0",
66
"author": "Adobe",
7-
"homepage": "https://opensource.adobe.com/spectrum-css/accordion",
7+
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-accordion--docs",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/adobe/spectrum-css.git",
@@ -29,22 +29,43 @@
2929
"dist/*",
3030
"*.md",
3131
"package.json",
32-
"stories/*",
33-
"metadata/*"
32+
"metadata/*",
33+
"stories/*"
3434
],
35+
"scripts": {
36+
"build": "yarn run component:build accordion",
37+
"build:full": "yarn report",
38+
"clean": "rimraf dist && test -d dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0",
39+
"compare": "yarn run component:compare accordion",
40+
"format": "run-p \"format:*\"",
41+
"format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.{md,mdx} **/*.{md,mdx}",
42+
"format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.json stories/*.js",
43+
"format:styles": "stylelint --fix --cache --allow-empty-input *.css **/*.css --ignore-pattern dist",
44+
"lint": "run-p \"lint:*\"",
45+
"lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.json stories/*.js",
46+
"lint:styles": "stylelint --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables *.css **/*.css --ignore-pattern dist",
47+
"report": "yarn run component:report accordion"
48+
},
3549
"peerDependencies": {
3650
"@spectrum-css/icon": ">=8.0.0-s2-foundations.0",
3751
"@spectrum-css/tokens": ">=15.0.0-s2-foundations.0"
3852
},
3953
"devDependencies": {
40-
"@spectrum-css/icon": "workspace:^",
41-
"@spectrum-css/tokens": "workspace:^"
54+
"@spectrum-css/icon": "8.0.0-s2-foundations.18",
55+
"@spectrum-css/tokens": "15.0.0-s2-foundations.31",
56+
"eslint": "^8.57.0",
57+
"npm-run-all2": "^7.0.2",
58+
"prettier": "^3.4.2",
59+
"stylelint": "^16.9.0"
4260
},
4361
"keywords": [
62+
"design-system",
4463
"spectrum",
45-
"css",
46-
"design system",
47-
"adobe"
64+
"spectrum-css",
65+
"adobe",
66+
"adobe-spectrum",
67+
"component",
68+
"css"
4869
],
4970
"publishConfig": {
5071
"access": "public"

components/accordion/project.json

-17
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/actionbar/metadata/metadata.json components/action-bar/metadata/metadata.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
".spectrum-ActionBar.is-open",
1818
".spectrum-ActionBar:lang(ja)",
1919
".spectrum-ActionBar:lang(ko)",
20-
".spectrum-ActionBar:lang(zh)"
20+
".spectrum-ActionBar:lang(zh)",
21+
".spectrum.spectrum--express",
22+
".spectrum.spectrum--legacy"
2123
],
2224
"modifiers": [
2325
"--mod-actionbar-corner-radius",
File renamed without changes.

0 commit comments

Comments
 (0)