Skip to content

Commit

Permalink
Merge pull request #3875 from carbon-design-system/v4-Carbon11
Browse files Browse the repository at this point in the history
V4 carbon11
  • Loading branch information
abpaul1993 authored Dec 6, 2024
2 parents e5ac76f + cbe7e5a commit 9fc9fc3
Show file tree
Hide file tree
Showing 1,191 changed files with 18,334 additions and 68,834 deletions.
25 changes: 11 additions & 14 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,27 @@
# These users own any files in the following directory at the root of
# the repository and any of its subdirectories.

* @davidicus @jessieyan @sls-ca @herleraja
* @davidicus @jessieyan @sls-ca @herleraja @abpaul1993

#####
# Core admin team should be notified of changes to build/test/deploy

# Core dependencies
/package.json @davidicus @jessieyan @sls-ca @herleraja
/yarn.lock @davidicus @jessieyan @sls-ca @herleraja
/package.json @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
/yarn.lock @davidicus @jessieyan @sls-ca @herleraja @abpaul1993

# Configuration files
**/*.config.js @davidicus @jessieyan @sls-ca @herleraja
**/config/ @davidicus @jessieyan @sls-ca @herleraja
/.nvmrc @davidicus @jessieyan @sls-ca @herleraja
**/*.config.js @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
**/config/ @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
/.nvmrc @davidicus @jessieyan @sls-ca @herleraja @abpaul1993

# Deploy configuration
**/.storybook/ @davidicus @jessieyan @sls-ca @herleraja
/.github/workflows/ @davidicus @jessieyan @sls-ca @herleraja
/netlify.toml @davidicus @jessieyan @sls-ca @herleraja
**/.storybook/ @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
/.github/workflows/ @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
/netlify.toml @davidicus @jessieyan @sls-ca @herleraja @abpaul1993

#####
# Release team should be notified of Public API changes in the system

**/publicAPI.test.js @davidicus @jessieyan @sls-ca @herleraja
**/publicAPI.test.js.snap @davidicus @jessieyan @sls-ca @herleraja

# Angular team should be required for Angular changes
/packages/angular/ @carbon-design-system/angular-maintainers
**/publicAPI.test.js @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
**/publicAPI.test.js.snap @davidicus @jessieyan @sls-ca @herleraja @abpaul1993
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.MD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ With that all in place, you're ready to start contributing!

### Working with the monorepo

The PAL is structured as a set of packages versioned and deployed together - `carbon-addons-iot-react`, `@ai-apps/angular`, and `@ai-apps/components`. Each one of these packages live in the `packages` directory, for example, `carbon-addons-iot-react` lives in the `packages/react` directory.
The PAL is structured as a set of packages versioned and deployed together - `carbon-addons-iot-react`, and `@ai-apps/components`. Each one of these packages live in the `packages` directory, for example, `carbon-addons-iot-react` lives in the `packages/react` directory.

To work on a package you must make sure to change into the correct directory - `cd packages/react` - otherwise package specific commands, or packages added via `yarn add`, will be run and added to the global scope and may conflict with other packages.

Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ assignees: ''
### What package is this for?

- [ ] React
- [ ] Angular

### Describe the bug

Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature-request-or-enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ If you are reporting a bug or problem, please use the bug template instead.
### What package is this for?

- [ ] React
- [ ] Angular

### Summary

Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/new-component-proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ assignees: ''
### What package is this for?

- [ ] React
- [ ] Angular

### Summary

Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ If these resources don't work out, help us out by filling in the details below.
### What package is this for?

- [ ] React
- [ ] Angular
- [ ] Both

### Summary

Expand Down
6 changes: 3 additions & 3 deletions .github/README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
> [!WARNING]
> This library no longer has a dedicated development resource maintaining it. When you are able to [migrate to Carbon v11](https://carbondesignsystem.com/migrating/guide/overview/) we recommend you reference the [related component guide](migration.md) and use components from [Carbon for IBM Products](https://carbon-for-ibm-products.netlify.app/?path=/story/overview-welcome--overview) and core [Carbon](https://react.carbondesignsystem.com/).
<p align="center">
<a href="https://pages.github.ibm.com/ai-applications/design/">
<img alt="Carbon add-ons for Watson IoT" src="https://user-images.githubusercontent.com/3360588/59875762-3add3180-9367-11e9-8a65-a6cf7efa5061.png" width="100%" />
Expand Down Expand Up @@ -47,6 +44,9 @@

**@latest from
[`master`](https://github.com/carbon-design-system/carbon-addons-iot-react/tree/master)**
&nbsp; - &nbsp; <a href="https://carbon-design-system.github.io/carbon-addons-iot-react">
<img valign=middle src="https://img.shields.io/badge/view%20%40latest-storybook-ff4785" alt="view @latest storybook" />
</a>

```bash
# with npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/codesandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ options: --privileged
- name: Checkout code
uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter3
id: changes
with:
filters: |
Expand All @@ -34,7 +34,7 @@ options: --privileged
uses: actions/setup-node@v4
if: steps.changes.outputs.react == 'true'
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- 'next'
- 'next'

permissions:
contents: read
Expand All @@ -20,10 +20,10 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
uses: actions/cache@v2
with:
path: |
node_modules
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- next
- v4-Carbon11

jobs:
publish:
Expand All @@ -20,7 +21,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
Expand Down
49 changes: 2 additions & 47 deletions .github/workflows/test-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/setup-node@v4
if: steps.changes.outputs.react == 'true'
with:
node-version: '16.x'
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
Expand Down Expand Up @@ -60,49 +60,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: dist
path: packages/react/dist

create-test-app:
name: Create test app and build
needs: build-pal
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
react:
- 'packages/react/**'
- name: Use Node.js
uses: actions/setup-node@v4
if: steps.changes.outputs.react == 'true'
with:
node-version: '16.x'

- name: Run cli command to create test app
if: steps.changes.outputs.react == 'true'
run: |
npx create-iot-react-app test-app
- name: Download all build artifacts
if: steps.changes.outputs.react == 'true'
uses: actions/download-artifact@v4

- name: Link dependencies and build test app
if: steps.changes.outputs.react == 'true'
run: |
cd dist
yarn install --frozen-lockfile --production
yarn link
cd ../test-app
yarn link carbon-addons-iot-react
yarn build
- name: Serve app
if: ${{ success() }}
run: timeout 40s npx serve -s ../../../test-app/build || CODE="$?"; if [[ "$CODE" -ne 124 ]]; then exit $CODE; else exit 0; fi
path: packages/react/dist
Loading

0 comments on commit 9fc9fc3

Please sign in to comment.