Skip to content

Commit

Permalink
chore(package): remove @carbon/web-components from monorepo (#11986)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

Closes #12020

This is ready for review, but should not be merged until the package has been fully migrated to the Carbon monorepo (carbon-design-system/carbon#17167).

### Description

Remove `carbon-web-components` package and all related files, build processes, etc from monorepo.

### Changelog

**Changed**

- update `@carbon/ibmdotcom-web-components` components to import directly from `@carbon/web-components` instead of `internal/vendor` (these build artifacts have been removed along with the package)

**Removed**

- `@carbon/web-components`:
  - entire package
  - build workflows, i.e. gulp, rollup, GH actions
  - documentation

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
kennylam authored Sep 20, 2024
1 parent e1b1fb8 commit d395ba2
Show file tree
Hide file tree
Showing 1,819 changed files with 691 additions and 96,399 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ body:
multiple: true
options:
- '@carbon/ibmdotcom-web-components'
- '@carbon/web-components'
- '@carbon/ibmdotcom-styles'
- '@carbon/ibmdotcom-services'
- '@carbon/ibmdotcom-utilities'
Expand Down
59 changes: 1 addition & 58 deletions .github/workflows/deploy-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,6 @@ concurrency:
cancel-in-progress: true

jobs:
carbon-web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
token: ${{secrets.MERGE_ACTION}}
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
run: yarn lerna run --scope @carbon/web-components build

- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/carbon-web-components/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PROFILE_HOST: ${{ secrets.PROFILE_HOST }}
- name: Building @carbon/web-components storybook
run: yarn build-storybook
working-directory: packages/carbon-web-components
- name: Move storybook to build folder
run: |
rm packages/carbon-web-components/.env
mkdir -p builds
mv packages/carbon-web-components/storybook-static builds/carbon-web-components
- name: Deploying @carbon/web-components storybook to Github Pages
run: |
git config --global user.email ${{ secrets.BOT_EMAIL }}
git config --global user.name ${{ secrets.BOT_NAME }}
git fetch origin gh-pages
git checkout -b gh-pages origin/gh-pages
git update-ref -d refs/remotes/origin/gh-pages
git pull origin gh-pages
rm -rf canary/carbon-web-components
mkdir -p canary
mv builds/carbon-web-components canary/carbon-web-components
git add canary/carbon-web-components
git commit -m "chore(deploy): deploy Carbon web components canary to GitHub Pages"
git push origin gh-pages
- uses: act10ns/slack@v2
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -197,7 +140,7 @@ jobs:
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
run: yarn lerna run --ignore @carbon/ibmdotcom-web-components --ignore @carbon/web-components build
run: yarn lerna run --ignore @carbon/ibmdotcom-web-components
- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,6 @@ concurrency:
cancel-in-progress: true

jobs:
carbon-web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
token: ${{secrets.MERGE_ACTION}}
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Build project
run: yarn lerna run --scope @carbon/web-components build

- name: Set env vars
uses: ./.github/actions/set-dotenv
with:
env-file: packages/carbon-web-components/.env
env:
KALTURA_PARTNER_ID: ${{ secrets.KALTURA_PARTNER_ID }}
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PROFILE_HOST: ${{ secrets.PROFILE_HOST }}
- name: Building @carbon/web-components (next) storybook
run: yarn build-storybook
working-directory: packages/carbon-web-components
- name: Move storybook to build folder
run: |
rm packages/carbon-web-components/.env
mkdir -p builds
mv packages/carbon-web-components/storybook-static builds/carbon-web-components
- name: Deploying @carbon/web-components (next) storybook to Github Pages
run: |
git config --global user.email ${{ secrets.BOT_EMAIL }}
git config --global user.name ${{ secrets.BOT_NAME }}
git fetch origin gh-pages
git checkout -b gh-pages origin/gh-pages
git update-ref -d refs/remotes/origin/gh-pages
git pull origin gh-pages
rm -rf next/carbon-web-components
mkdir -p next
mv builds/carbon-web-components next/carbon-web-components
git add next/carbon-web-components
git commit -m "chore(deploy): deploy Carbon web components next to GitHub Pages"
git push origin gh-pages
- uses: act10ns/slack@v2
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
status: ${{ job.status }}
web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/cwd-npm-0.10.0-ccb304998d-fdb2d1e8e1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/depd-npm-1.1.2-b0c8414da7-2ed6966fc1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-19706e7e35-10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/obuf-npm-1.1.2-8db5fae8dd-53ff4ab3a1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/rx-npm-4.1.0-46beeec71d-9295066658.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/spdy-npm-4.0.2-7e5782a993-d29b89e48e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/tr46-npm-2.1.0-00af583f4f-302b13f458.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/wbuf-npm-1.7.3-cc9e10a084-c18b51c4e1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ws-npm-8.5.0-8e99728c84-f0ee700970.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ we support!
| [`@carbon/ibmdotcom-services`](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/services) | IBM.com ES6 Service classes |
| [`@carbon/ibmdotcom-styles`](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/styles) | Framework agnostic styles package for IBM.com components |
| [`@carbon/ibmdotcom-utilities`](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/utilities) | IBM.com ES6 Utility classes |
| [`@carbon/web-components`](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/packages/carbon-web-components) | Carbon Web Components |

If you are building pages for IBM.com,
[see what is needed on the page](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/docs/building-for-ibm-dotcom.md).
Expand All @@ -51,7 +50,6 @@ If you are building pages for IBM.com,
https://www.ibm.com/standards/carbon/web-components
- `@carbon/ibmdotcom-web-components` - React Wrappers:
https://www.ibm.com/standards/carbon/web-components/react
- `@carbon/web-components`: https://web-components.carbondesignsystem.com

## Documentation

Expand Down
Loading

0 comments on commit d395ba2

Please sign in to comment.