Skip to content

Commit

Permalink
build: integrate yarn constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Jan 3, 2025
1 parent b679cb3 commit 25ce676
Show file tree
Hide file tree
Showing 97 changed files with 2,800 additions and 721 deletions.
13 changes: 13 additions & 0 deletions .github/actions/file-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@
"description": "A GitHub Action to compare asset sizes and generate a diff if changes are found.",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
"directory": ".github/actions/file-diff"
},
"bugs": {
"url": "https://github.com/adobe/spectrum-css/issues"
},
"main": "index.js",
"files": [
"*.md",
"package.json"
],
"dependencies": {
"@actions/artifact": "^2.2.0",
"@actions/core": "^1.11.1",
Expand Down
21 changes: 20 additions & 1 deletion .storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/preview",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
"directory": ".storybook"
},
"bugs": {
"url": "https://github.com/adobe/spectrum-css/issues"
},
"type": "module",
"exports": {
".": "./preview.js",
Expand All @@ -24,6 +32,10 @@
"./types/*": "./types/*"
},
"module": "main.js",
"files": [
"*.md",
"package.json"
],
"scripts": {
"build": "cross-env NODE_ENV=development storybook build --config-dir . --output-dir ./storybook-static"
},
Expand Down Expand Up @@ -67,5 +79,12 @@
"rollup-plugin-postcss-lit": "^2.1.0",
"storybook": "^8.4.7",
"vite": "^5.4.11"
}
},
"keywords": [
"design-system",
"spectrum",
"spectrum-css",
"adobe",
"adobe-spectrum"
]
}
37 changes: 29 additions & 8 deletions components/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS accordion component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/accordion",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-accordion--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -21,28 +21,49 @@
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"metadata/*"
"metadata/*",
"stories/*"
],
"scripts": {
"build": "yarn run component:build accordion",
"build:full": "yarn report",
"clean": "rimraf dist && test -d dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0",
"compare": "yarn run component:compare accordion",
"format": "run-p \"format:*\"",
"format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.{md,mdx} **/*.{md,mdx}",
"format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.json stories/*.js",
"lint": "run-p \"lint:*\"",
"lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.json stories/*.js",
"report": "yarn run component:report accordion"
},
"peerDependencies": {
"@spectrum-css/icon": ">=7",
"@spectrum-css/tokens": ">=14"
},
"devDependencies": {
"@spectrum-css/icon": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/icon": "7.2.0",
"@spectrum-css/tokens": "14.6.0",
"eslint": "^8.57.0",
"npm-run-all2": "*",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
43 changes: 32 additions & 11 deletions components/actionbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS actionbar component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actionbar",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-actionbar--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -21,15 +21,29 @@
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"metadata/*"
"metadata/*",
"stories/*"
],
"scripts": {
"build": "yarn run component:build actionbar",
"build:full": "yarn report",
"clean": "rimraf dist && test -d dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0",
"compare": "yarn run component:compare actionbar",
"format": "run-p \"format:*\"",
"format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.{md,mdx} **/*.{md,mdx}",
"format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.json stories/*.js",
"lint": "run-p \"lint:*\"",
"lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.json stories/*.js",
"report": "yarn run component:report actionbar"
},
"peerDependencies": {
"@spectrum-css/actiongroup": ">=5",
"@spectrum-css/closebutton": ">=5",
Expand All @@ -38,17 +52,24 @@
"@spectrum-css/tokens": ">=14"
},
"devDependencies": {
"@spectrum-css/actiongroup": "workspace:^",
"@spectrum-css/closebutton": "workspace:^",
"@spectrum-css/fieldlabel": "workspace:^",
"@spectrum-css/popover": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/actiongroup": "5.2.0",
"@spectrum-css/closebutton": "5.3.0",
"@spectrum-css/fieldlabel": "8.2.0",
"@spectrum-css/popover": "7.2.0",
"@spectrum-css/tokens": "14.6.0",
"eslint": "^8.57.0",
"npm-run-all2": "*",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
37 changes: 29 additions & 8 deletions components/actionbutton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS action button component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actionbutton",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-actionbutton--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -21,15 +21,29 @@
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"metadata/*"
"metadata/*",
"stories/*"
],
"scripts": {
"build": "yarn run component:build actionbutton",
"build:full": "yarn report",
"clean": "rimraf dist && test -d dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0",
"compare": "yarn run component:compare actionbutton",
"format": "run-p \"format:*\"",
"format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.{md,mdx} **/*.{md,mdx}",
"format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.json stories/*.js",
"lint": "run-p \"lint:*\"",
"lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.json stories/*.js",
"report": "yarn run component:report actionbutton"
},
"peerDependencies": {
"@spectrum-css/icon": ">=7",
"@spectrum-css/tokens": ">=14"
Expand All @@ -41,14 +55,21 @@
},
"devDependencies": {
"@spectrum-css/commons": "workspace:^",
"@spectrum-css/icon": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/icon": "7.2.0",
"@spectrum-css/tokens": "14.6.0",
"eslint": "^8.57.0",
"npm-run-all2": "*",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
37 changes: 31 additions & 6 deletions components/actiongroup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS actiongroup component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actiongroup",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-actiongroup--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -21,15 +21,29 @@
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"metadata/*"
"metadata/*",
"stories/*"
],
"scripts": {
"build": "yarn run component:build actiongroup",
"build:full": "yarn report",
"clean": "rimraf dist && test -d dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0",
"compare": "yarn run component:compare actiongroup",
"format": "run-p \"format:*\"",
"format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.{md,mdx} **/*.{md,mdx}",
"format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.json stories/*.js",
"lint": "run-p \"lint:*\"",
"lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.json stories/*.js",
"report": "yarn run component:report actiongroup"
},
"peerDependencies": {
"@spectrum-css/actionbutton": ">=6",
"@spectrum-css/tokens": ">=14"
Expand All @@ -39,11 +53,22 @@
"optional": true
}
},
"devDependencies": {
"@spectrum-css/actionbutton": "6.2.0",
"@spectrum-css/tokens": "14.6.0",
"eslint": "^8.57.0",
"npm-run-all2": "*",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 25ce676

Please sign in to comment.