Skip to content

Commit 409de16

Browse files
authored
Merge pull request #2030 from dxc-technology/gomezivann/turbo-halstack
Turbo Halstack
2 parents f8c2cc4 + e7c34aa commit 409de16

File tree

2,137 files changed

+51921
-87611
lines changed

Some content is hidden

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

2,137 files changed

+51921
-87611
lines changed

.github/workflows/check-links.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ jobs:
1313

1414
- name: Link Checker
1515
id: lychee
16-
uses: lycheeverse/lychee-action@v1
17-
with:
18-
args: . --exclude app
16+
uses: lycheeverse/lychee-action@v1

.github/workflows/chromatic.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: "Chromatic"
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
paths:
8-
- "lib/**"
9-
pull_request:
10-
paths:
11-
- "lib/**"
3+
# on:
4+
# push:
5+
# branches:
6+
# - master
7+
# paths:
8+
# - "packages/lib/**"
9+
# pull_request:
10+
# paths:
11+
# - "packages/lib/**"
12+
13+
on: pull_request
1214

1315
jobs:
1416
chromatic-deployment:
@@ -19,8 +21,8 @@ jobs:
1921
with:
2022
fetch-depth: 0
2123

22-
- name: Install lib dependencies
23-
run: cd lib && npm install
24+
- name: Install dependencies
25+
run: npm install
2426

2527
- name: Install Node.js 18.x
2628
uses: actions/setup-node@v1
@@ -35,11 +37,12 @@ jobs:
3537
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
3638
exitOnceUploaded: true
3739
exitZeroOnChanges: true
38-
workingDir: lib
40+
workingDir: packages/lib
41+
3942
- name: Run Storybook Tests
4043
run: |
41-
cd lib
44+
cd packages/lib
4245
npx playwright install --with-deps
4346
npm run storybook:accessibility:ci
4447
env:
45-
TARGET_URL: "${{ steps.chromatic_publish.outputs.storybookUrl }}"
48+
TARGET_URL: "${{ steps.chromatic_publish.outputs.storybookUrl }}"

.github/workflows/publish-next.yml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
paths:
8-
- "lib/**"
8+
- "packages/lib/**"
99

1010
jobs:
1111
build:
@@ -31,36 +31,27 @@ jobs:
3131
role-duration-seconds: 3600
3232
role-skip-session-tagging: true
3333

34-
- name: Install lib dependencies
35-
run: cd lib && npm install --omit=dev
36-
37-
- name: Install lib babel dependency
38-
run: cd lib && npm install --D @babel/core
39-
40-
- name: Build library
41-
run: cd lib && npm run build
42-
43-
- name: Install website dependencies
44-
run: cd website && npm i
45-
34+
- name: Install dependencies
35+
run: npm install
36+
37+
- name: Build library and website
38+
run: npm run build
39+
4640
- name: Test library
47-
run: cd lib && npm run test
48-
41+
run: npm run test
42+
4943
- name: Test library accessibility
50-
run: cd lib && npm run test:accessibility
51-
52-
- name: Build website
53-
run: cd website && SITE_VERSION=next npm run build
44+
run: npm run test:accessibility
5445

5546
- name: Publish NEXT version to npm
5647
run: |
57-
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"0.0.0-${GITHUB_SHA:0:7}\"#" ./dist/package.json
58-
cd dist
48+
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"0.0.0-${GITHUB_SHA:0:7}\"#" ./packages/lib/package.json
49+
cd packages/lib
5950
npm publish --tag next --access public
6051
env:
6152
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
6253

6354
- name: Move NEXT website to S3
6455
run: |
6556
aws s3 rm s3://design-system-react-cdk-site/halstack/next/ --recursive
66-
aws s3 cp ./website/out/ s3://design-system-react-cdk-site/halstack/next/ --recursive
57+
aws s3 cp ./apps/website/out/ s3://design-system-react-cdk-site/halstack/next/ --recursive

.github/workflows/publish-release.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,22 @@ jobs:
2828
role-duration-seconds: 3600
2929
role-skip-session-tagging: true
3030

31-
- name: Install lib dependencies
32-
run: cd lib && npm install --omit=dev
33-
34-
- name: Install lib babel dependency
35-
run: cd lib && npm install --D @babel/core
36-
37-
- name: Build library
38-
run: cd lib && npm run build
39-
40-
- name: Install website dependencies
41-
run: cd website && npm i
42-
31+
- name: Install dependencies
32+
run: npm install
33+
34+
- name: Build library and website
35+
run: npm run build
36+
4337
- name: Test library
44-
run: cd lib && npm run test
45-
38+
run: npm run test
39+
4640
- name: Test library accessibility
47-
run: cd lib && npm run test:accessibility
41+
run: npm run test:accessibility
4842

4943
- name: Publish RELEASE to npm
5044
run: |
51-
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./dist/package.json
52-
cd dist
45+
sed -i "s#\"version\": \"0.0.0\"#\"version\": \"${TAG_NAME}\"#" ./packages/lib/package.json
46+
cd packages/lib
5347
npm publish --access public
5448
env:
5549
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

.github/workflows/publish-website.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
paths:
8-
- "website/**"
8+
- "apps/website/**"
99

1010
jobs:
1111
build:
@@ -32,12 +32,12 @@ jobs:
3232
role-skip-session-tagging: true
3333

3434
- name: Install website dependencies
35-
run: cd website && npm i
35+
run: npm install
3636

37-
- name: Build library
38-
run: cd website && SITE_VERSION=next npm run build
37+
- name: Build website
38+
run: SITE_VERSION=next npm run build
3939

4040
- name: Move website to S3
4141
run: |
4242
aws s3 rm s3://design-system-react-cdk-site/halstack/next/ --recursive
43-
aws s3 cp ./website/out/ s3://design-system-react-cdk-site/halstack/next/ --recursive
43+
aws s3 cp ./apps/website/out/ s3://design-system-react-cdk-site/halstack/next/ --recursive

.github/workflows/pull-request.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,14 @@ jobs:
1616
node-version: 18.x
1717
registry-url: https://registry.npmjs.org/
1818

19-
- name: Install lib dependencies
20-
run: cd lib && npm install
19+
- name: Install dependencies
20+
run: npm install
2121

22-
- name: Build library
23-
run: cd lib && npm run build
24-
25-
- name: Install website dependencies
26-
run: cd website && npm i
22+
- name: Build library and website
23+
run: npm run build
2724

2825
- name: Test library
29-
run: cd lib && npm run test
26+
run: npm run test
3027

3128
- name: Test library accessibility
32-
run: cd lib && npm run test:accessibility
33-
34-
- name: Build website
35-
run: cd website && npm run build
29+
run: npm run test:accessibility

.gitignore

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1-
app/cypress/snapshots/detailed-visual-regression.js/__diff_output__/
2-
/node_modules
3-
/dist
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
28+
dist
29+
30+
31+
# Debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# Misc
37+
.DS_Store
38+
*.pem
39+
40+
# Storybook
41+
*storybook.log
42+
storybook-static

.npmrc

Whitespace-only changes.
File renamed without changes.

CONTRIBUTING.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# Contributing Guidelines
22

3-
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4-
documentation, we greatly value feedback and contributions from our community.
3+
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community.
54

6-
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7-
information to effectively respond to your bug report or contribution.
5+
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your bug report or contribution.
86

7+
Before contributing, please read our [contribution guidelines](https://github.com/dxc-technology/halstack-react/wiki/Contributing).
98

109
## Reporting Bugs/Feature Requests
1110

1211
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1312

14-
When filing an issue, please check existing open or recently closed, issues to make sure somebody else hasn't already
15-
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
13+
When filing an issue, please check existing open or recently closed, issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1614

1715
* A reproducible test case or series of steps
1816
* The version of our code being used
1917
* Any modifications you've made relevant to the bug
2018
* Anything unusual about your environment or deployment
2119

22-
2320
## Contributing via Pull Requests
21+
2422
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
2523

2624
1. You are working against the latest source on the *staging* branch.
@@ -34,18 +32,17 @@ To send us a pull request, please:
3432
3. Ensure local tests pass.
3533
4. Commit to your fork using clear commit messages.
3634
5. Send us a pull request merging into the *staging* branch, answering any default questions in the pull request interface.
37-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
38-
39-
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40-
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
35+
6. CI pipelines will fail since this is a fork. We will manually run the CI pipeline on the PR after reviewing the code and give feedback if needed.
4136

37+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and [creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
4238

4339
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix).
40+
41+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix).
4542

4643
## Security issue notifications
47-
If you discover a potential security issue in this project we ask that you notify DXC Technology Security via email. Please do **not** create a public github issue.
4844

45+
If you discover a potential security issue in this project we ask that you notify DXC Technology Security via email. Please do **not** create a public github issue.
4946

5047
## Licensing
5148

0 commit comments

Comments
 (0)