Skip to content

Commit 8643af5

Browse files
caseyisonitblunteshwarTarunAdoberise-erpeldingcastastrophe
authored
ci: remove Spectrum CSS dependencies and processing, update documentation (#5472)
* chore: remove spectrum-config.js files from various packages (#5417) * chore: remove spectrum-config.js files from various packages * chore; remove spectrum-css dependencies * chore: remove unused @spectrum-css dependencies from yarn.lock * Update packages/icons-ui/package.json * Update packages/icons-ui/package.json --------- Co-authored-by: Casey Eickhoff <[email protected]> * chore: update styling guide (#5437) * chore: add styling guide * chore: remove spectrum-config and update other docs * fix: update yarn new-package to not depend on spectrum-css * chore: update styling guide * chore: remove formating from plopfile * chore: update grammer nits Co-authored-by: rise-erpelding <[email protected]> * chore: update docs grammer Co-authored-by: rise-erpelding <[email protected]> * chore: remove unnecessary file generation during new-packge * chore: remove spectrum-config from the generate-component doc * chore: process-spectrum part 1 [swc-808] * chore: include version alignment into constraints [swc-809] * chore: clean-up unused packages * chore: move tasks into scripts [swc-854] (#5476) * chore: move tasks into scripts [swc-854] * chore: update custom element manifest scripts to simpify * chore: remove build-confirm command and fix cem-tools (#5482) * chore: remove build-confirm command and fix cem-tools * chore: adds build confirm command back --------- Co-authored-by: Casey Eickhoff <[email protected]> * chore: addressing feedback * chore: fix new-package command and more feedback * chore: add back args and template plops * chore: spectrum config search feedback * chore: addressing feedback * chore: addressing feedback * chore: addressing feedback * chore: addressing feedback * chore: addressing feedback * chore: update renovate config * update capitalization Co-authored-by: Josh Johnson <[email protected]> * update copywright Co-authored-by: Josh Johnson <[email protected]> * chore: update capitalization again Co-authored-by: Josh Johnson <[email protected]> --------- Co-authored-by: Piyush Vashisht <[email protected]> Co-authored-by: TaraT <[email protected]> Co-authored-by: rise-erpelding <[email protected]> Co-authored-by: castastrophe <[email protected]> Co-authored-by: Josh Johnson <[email protected]>
1 parent fcd70ad commit 8643af5

File tree

204 files changed

+1083
-13998
lines changed

Some content is hidden

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

204 files changed

+1083
-13998
lines changed

.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,16 @@
7979
],
8080
"overrides": [
8181
{
82-
"files": ["tasks/*", "scripts/*"],
82+
"files": ["scripts/*"],
8383
"rules": {
8484
"no-console": ["off"]
8585
}
86+
},
87+
{
88+
"files": ["react/**/*.ts"],
89+
"rules": {
90+
"@typescript-eslint/no-explicit-any": "off"
91+
}
8692
}
8793
]
8894
}

.github/CODEOWNERS

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
cem-react-wrapper.config.js @jianliao
2-
scripts/cem-plugin-react-wrappers.js @jianliao
3-
scripts/generate-icon-react-wrapper.js @jianliao
4-
tasks/build-react.js @jianliao
5-
* @adobe/swc-maintainers
1+
* @adobe/swc-maintainers

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"labels": ["dependencies"],
1212
"packageRules": [
1313
{
14-
"matchPackageNames": ["@spectrum-css/*"],
14+
"matchFileNames": ["@*/*.css"],
1515
"labels": ["Spectrum CSS"]
1616
},
1717
{
File renamed without changes.

tasks/build-tachometer-comment.js renamed to .github/scripts/build-tachometer-comment.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
1111
governing permissions and limitations under the License.
1212
*/
1313

14-
import fg from 'fast-glob';
1514
import fs from 'fs';
15+
16+
import fg from 'fast-glob';
1617
import prettyBytes from 'pretty-bytes';
1718

1819
const getTachometerResults = () => {
@@ -156,7 +157,7 @@ export const buildTachometerComment = () => {
156157
const firefoxTables = results.firefox.map(buildTable);
157158
const chromeBody = chromeTables.length
158159
? chromeTables.join(`
159-
160+
160161
`)
161162
: 'Currently, no packages are changed by this PR...';
162163
const firefoxBody = firefoxTables.length

.github/workflows/browser-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
uses: actions/github-script@v7
9494
with:
9595
script: |
96-
const { buildTachometerComment } = await import('${{ github.workspace }}/tasks/build-tachometer-comment.js');
96+
const { buildTachometerComment } = await import('${{ github.workspace }}/.github/scripts/build-tachometer-comment.js');
97+
const { commentOrUpdate } = await import('${{ github.workspace }}/.github/scripts/comment-or-update.js');
9798
const body = buildTachometerComment();
98-
const { commentOrUpdate } = await import('${{ github.workspace }}/tasks/comment-or-update.js');
9999
commentOrUpdate(github, context, '## Tachometer results', body);

.github/workflows/preview-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
yarn constraints --fix
3131
yarn version:update
3232
yarn install --refresh-lockfile
33+
3334
- name: Configure NPM for changeset publish
3435
env:
3536
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/urls-smoke-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ jobs:
3939
uses: actions/github-script@v7
4040
with:
4141
script: |
42-
const { buildPreviewURLComment } = await import('${{ github.workspace }}/tasks/build-preview-urls-comment.js');
42+
const { buildPreviewURLComment, getDocPreviewURL } = await import('${{ github.workspace }}/.github/scripts/build-preview-urls-comment.js');
43+
const { commentOrUpdate } = await import('${{ github.workspace }}/.github/scripts/comment-or-update.js');
4344
const body = buildPreviewURLComment(process.env.GITHUB_HEAD_REF);
44-
const { getDocPreviewURL } = await import('${{ github.workspace }}/tasks/build-preview-urls-comment.js');
45-
const { commentOrUpdate } = await import('${{ github.workspace }}/tasks/comment-or-update.js');
4645
commentOrUpdate(github, context, '## Branch preview', body);
4746
4847
playwright-smoke-tests:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ custom-elements.json
3131
packages/*/src/**/*.css.js
3232
packages/*/custom-elements.json
3333
packages/**/*.js
34-
packages/**/spectrum-vars.json
3534
packages/**/*.js.map
3635
packages/**/*.d.ts
3736
packages/**/*.test-vrt.ts
@@ -50,7 +49,6 @@ projects/**/*.d.ts
5049

5150
tools/*/src/**/*.css.js
5251
tools/*/custom-elements.json
53-
tools/**/spectrum-vars.json
5452
tools/**/*.js
5553
tools/**/*.js.map
5654
tools/**/*.d.ts

0 commit comments

Comments
 (0)