Skip to content

chore: script clean-up for packages and tokens[swc-808] #5419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"repo": "adobe/spectrum-web-components"
}
],
"commit": false,
"commit": [
"@changesets/cli/commit",
{
"message": "chore: release new versions #publish"
}
],
"fixed": [["@spectrum-web-components/*"]],
"linked": [],
"access": "public",
Expand Down
37 changes: 9 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ commands:
downstream:
steps:
- checkout
# - restore_cache:
# keys:
# - v4c-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
# - restore_cache:
# keys:
# - v4b-<< pipeline.parameters.wireit_cache_name >>-{{ arch }}-{{ checksum "package.json" }}-
- restore_cache:
keys:
- v4c-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- restore_cache:
keys:
- v4b-<< pipeline.parameters.wireit_cache_name >>-{{ arch }}-{{ checksum "package.json" }}-
- run:
name: Installing Dependencies
name: Installing dependencies
command: |
corepack enable
yarn --immutable
Expand Down Expand Up @@ -225,18 +225,9 @@ jobs:
executor: node
steps:
- downstream
- run:
name: Generate Custom Elements Manifest
command: yarn docs:analyze
- run:
name: Move CEM to Storybook directory
command: cp projects/documentation/custom-elements.json storybook/
- run:
name: Build documentation
command: yarn docs:build
- run:
name: Build Storybook
command: yarn storybook:build
command: yarn docs:preview
- run: echo '/* /index.html 200' > projects/documentation/dist/_redirects
- run: |
branch=$(git symbolic-ref --short HEAD)
Expand All @@ -248,18 +239,9 @@ jobs:

steps:
- downstream
- run:
name: Generate Custom Elements Manifest
command: yarn docs:analyze
- run:
name: Move CEM to Storybook directory
command: cp projects/documentation/custom-elements.json storybook/
- run:
name: Build documentation
command: yarn docs:build
- run:
name: Build Storybook
command: yarn storybook:build
command: yarn docs:ci
- run: echo '/* /index.html 200' > projects/documentation/dist/_redirects
- run: |
branch=$(git symbolic-ref --short HEAD)
Expand Down Expand Up @@ -372,7 +354,6 @@ jobs:
regression_dir: << parameters.dir >>

workflows:
version: 2
commitlint:
jobs:
- commitlint
Expand Down
103 changes: 103 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/*
Copyright 2025 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

const path = require('path');

module.exports = {
root: true,
plugins: [
'@typescript-eslint',
'notice',
'@spectrum-web-components',
'import',
'require-extensions',
],
env: {
browser: true,
node: true,
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
curly: ['error', 'all'],
'no-debugger': 2,
'no-console': [
'error',
{
allow: ['warn', 'error'],
},
],
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
},
],
'import/prefer-default-export': 'off',
'@spectrum-web-components/prevent-argument-names': [
'error',
['e', 'ev', 'evt', 'err'],
],
'notice/notice': [
'error',
{
mustMatch: 'Copyright [0-9]{0,4} Adobe. All rights reserved.',
templateFile: path.join(__dirname, 'config/license.js'),
},
],
'sort-imports': [
'error',
{
ignoreCase: true,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
allowSeparatedGroups: false,
},
],
'lit-a11y/click-events-have-key-events': [
'error',
{
allowList: [
'sp-button',
'sp-action-button',
'sp-checkbox',
'sp-radio',
'sp-switch',
'sp-menu-item',
'sp-clear-button',
'sp-underlay',
],
},
],
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:lit-a11y/recommended',
'plugin:require-extensions/recommended',
],
overrides: [
{
files: ['scripts/*'],
rules: {
'no-console': ['off'],
},
},
],
};
94 changes: 0 additions & 94 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @adobe/swc-maintainers
* @adobe/swc-maintainers
3 changes: 1 addition & 2 deletions .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
fetch-depth: 0 # Get full history

- name: Fetch main branch
run: |
git fetch origin main:main
run: git fetch origin main:main

- name: Setup Job and Install Dependencies
uses: ./.github/actions/setup-job
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/chromatic-vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: ./.github/actions/setup-job

- name: Generate Custom Elements Manifest
run: yarn docs:analyze
run: yarn docs:cem

- name: Move CEM to Storybook directory
run: cp projects/documentation/custom-elements.json storybook/
Expand All @@ -51,7 +51,7 @@ jobs:
exitOnceUploaded: true
onlyChanged: true
traceChanged: true
untraced: '.github/actions/*/package.json'
untraced: 'projects/*/package.json'
diagnostics: true
# Lets VRT pass without running so as not to waste snapshots
skip: ${{ inputs.skip }}
2 changes: 0 additions & 2 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,4 @@ jobs:
run: |
git add .
git commit -am "chore: publish preview snapshot version"
yarn prepublishOnly
yarn changeset publish --no-git-tag --tag preview
git reset --hard HEAD^
13 changes: 2 additions & 11 deletions .github/workflows/publish-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,8 @@ jobs:
- name: Setup Job and Install Dependencies
uses: ./.github/actions/setup-job

- name: Generate Custom Elements Manifest
run: yarn docs:analyze

- name: Move CEM to Storybook directory
run: cp projects/documentation/custom-elements.json storybook/

- name: Build documentation
run: yarn docs:production

- name: Build Storybook
run: yarn storybook:build
- name: Build production documentation
run: yarn docs:ci

- name: Add redirects to documentation
run: echo '/* /index.html 200' > projects/documentation/dist/_redirects
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ lib
# build artifacts
custom-elements.json

!packages/icons/bin/build.js
!packages/icons-ui/bin/build.js
!packages/icons-workflow/bin/build.js

!packages/icons-workflow/src/DefaultIcon.ts

packages/*/src/**/*.css.js
Expand Down
12 changes: 4 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"files.exclude": {
"**/*.css.ts": { "when": "$(basename)" },
"packages/**/*.js.map": true,
"packages/**/*.js": { "when": "$(basename).ts" },
"packages/**/*.dev.js": { "when": "$(basename).js" },
"packages/**/*.d.ts": { "when": "$(basename).ts" },
"tools/**/*.js.map": true,
"tools/**/*.js": { "when": "$(basename).ts" },
"tools/**/*.dev.js": { "when": "$(basename).js" },
"tools/**/*.d.ts": { "when": "$(basename).ts" },
"**/*.js.map": true,
"**/*.js": { "when": "$(basename).ts" },
"**/*.dev.js": { "when": "$(basename).js" },
"**/*.d.ts": { "when": "$(basename).ts" },
"**/*.test-vrt.ts": true
},
"typescript.tsdk": "node_modules/typescript/lib",
Expand Down
Loading
Loading