Skip to content

Commit

Permalink
Merge branch 'main' into docs-added-further-vscode-extension-suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Dec 18, 2024
2 parents 65c66d0 + 92fb768 commit a2c7a19
Show file tree
Hide file tree
Showing 3,704 changed files with 35,436 additions and 17,249 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .config/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"reporters": ["console"],
"minTokens": 65,
"ignore": [
"**/.angular/**",
".history/**",
"**/__snapshots__/**",
"**/.github/**",
Expand Down
3 changes: 3 additions & 0 deletions .config/.lintstagedrc-prettier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
'**/*': 'prettier --write --ignore-unknown'
};
6 changes: 5 additions & 1 deletion .config/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export default {
'*.md': 'markdownlint -c .config/.markdown-lint.yml',
'*.{css,scss}': 'stylelint --fix --allow-empty-input',
// In case that we're changing the stylelints configuration files content, we would need to validate it
'.stylelintrc.*': 'stylelint --validate',
'stylelint.config.*': 'stylelint --validate',
// and elsewhere we don't, compare to https://github.com/stylelint/stylelint/pull/8009
'*.{css,scss}': 'stylelint --fix --allow-empty-input --no-validate',
'*.{js,ts,tsx,jsx,mjs,cjs}': 'xo --fix'
};
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
/showcases/nuxt-showcase/**
build-outputs/
build-showcases/
/output/vue/scripts/fix-any-types.ts
/output/**
10 changes: 5 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<!-- What types of changes does your code introduce?
_Put an `x` in the boxes that apply_ -->

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Refactoring (fix on existing components or architectural decisions)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation Update (if none of the other choices apply)
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Refactoring (fix on existing components or architectural decisions)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation Update (if none of the other choices apply)

<!-- ## Checklist
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/npm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
nodeVersion:
description: "Node version"
required: false
default: "20"
default: "22"
runs:
using: "composite"
steps:
Expand Down
14 changes: 13 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ updates:
update-types: ["version-update:semver-major"]
- dependency-name: "react-dom"
update-types: ["version-update:semver-major"]

- dependency-name: "typescript"
update-types: ["version-update:semver-major"]
- dependency-name: "ng-packagr"
Expand All @@ -39,6 +38,9 @@ updates:
update-types: ["version-update:semver-minor"]
# There is an issue with sass:1.77.5 and additional colors in foundations we ignore updates for now
- dependency-name: "sass"
# We currently need to ignore eslint@v9
- dependency-name: "eslint"
update-types: ["version-update:semver-major"]
pull-request-branch-name:
separator: "-"
# https://github.com/dependabot/dependabot-core/issues/5226#issuecomment-1179434437
Expand Down Expand Up @@ -73,3 +75,13 @@ updates:
builder.io:
patterns:
- "@builder.io/mitosis*"
inquirer:
patterns:
- "@inquirer/*"
- "inquirer"
mdx-js:
patterns:
- "@mdx-js/*"
guidepup:
patterns:
- "@guidepup/*"
13 changes: 11 additions & 2 deletions .github/scripts/build-gh-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ echo "📦 Unpack Tar"
tar -zxf gh-pages -C public --strip-components 1

if [[ $RELEASE == "true" ]]; then
echo "🔃 Change redirect"
echo "<meta http-equiv=\"refresh\" content=\"0; URL=https://"$OWNER_NAME".github.io/"$REPO_NAME"/version/"$NAME"\" />" > public/index.html
echo "🔃 Create redirect"
echo "<meta http-equiv=\"refresh\" content=\"0; URL=https://"$OWNER_NAME".github.io/"$REPO_NAME"/version/latest\" />" > public/index.html
fi

echo "👣 Move out dir"
Expand All @@ -29,6 +29,15 @@ if [[ $PRE_RELEASE == "true" || $RELEASE == "true" ]]; then
echo " Remove dir ./public/version/$NAME"
rm -rf ./public/version/"$NAME"
fi
if [[ $RELEASE == "true" ]]; then
if [[ -d ./public/version/latest ]]; then
echo " Remove dir ./public/version/latest"
rm -rf ./public/version/latest
fi
mkdir ./public/version/latest
cp -RT ./out ./public/version/latest
echo " Copied dir out to ./public/version/latest"
fi
mv ./out ./public/version/"$NAME"
echo " Moved dir out to ./public/version/$NAME"
else
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/cleanup-gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const removeOldFromPath = (isTag, data) => {
) {
const dirsToDelete = FS.readdirSync(path)
.filter((file) => !data.find((branch) => branch.name === file))
.filter((file) => file !== 'main');
// Let's not clean up specific folders
.filter((file) => !['main', 'latest'].includes(file));
if (dirsToDelete?.length > 0) {
console.log(
TAG,
Expand Down
9 changes: 5 additions & 4 deletions .github/scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ echo "goto build-outputs"
cd build-outputs || exit 1

# TODO: Add other build as well
for PACKAGE in 'foundations' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
for PACKAGE in 'foundations' 'migration' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
echo "Start $PACKAGE bundle:"

echo "🆚 Update Version"
npm version --no-git-tag-version "$VALID_SEMVER_VERSION" --workspace=@db-ui/"$PACKAGE"

if [[ $PACKAGE != 'foundations' ]]; then
if [[ $PACKAGE != 'foundations' && $PACKAGE != 'migration' ]]; then
echo "🕵️‍ Set foundations dependency"
npm pkg set dependencies.@db-ui/foundations="$VALID_SEMVER_VERSION" --workspace=@db-ui/"$PACKAGE"
if [[ $PACKAGE != 'components' ]]; then
Expand Down Expand Up @@ -58,8 +58,9 @@ for REGISTRY in 'GITHUB' 'NPM'; do
fi

# TODO: Add other build as well
for PACKAGE in 'foundations' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
for PACKAGE in 'foundations' 'migration' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
echo "⤴ Publish $PACKAGE with tag $TAG to $REGISTRY"
npm publish --tag "$TAG" db-ui-"$PACKAGE"-"$VALID_SEMVER_VERSION".tgz
# https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow
npm publish --tag "$TAG" db-ui-"$PACKAGE"-"$VALID_SEMVER_VERSION".tgz --provenance
done
done
37 changes: 0 additions & 37 deletions .github/scripts/release/index.js

This file was deleted.

42 changes: 0 additions & 42 deletions .github/scripts/release/upload-asset.js

This file was deleted.

11 changes: 0 additions & 11 deletions .github/scripts/release/zip-folder.js

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/00-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
name: Init
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⏬ Checkout repo
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/01-build-outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
name: db-ui-components-build
path: packages/components/build

- name: ⏬ Download migration build
uses: actions/download-artifact@v4
with:
name: db-ui-migration-build
path: packages/migration/build

- name: ⏬ Download output
uses: actions/download-artifact@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/01-build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
name: db-ui-components-build
path: packages/components/build

- name: ⏫ Upload migration build
uses: actions/upload-artifact@v4
with:
name: db-ui-migration-build
path: packages/migration/build

- name: 💀 Killing me softly
uses: ./.github/actions/cancel-workflow
if: failure()
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/01-build-patternhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ on:
required: false
default: "false"
type: string
outputs:
path:
description: "Base path for patternhub"
value: ${{ jobs.build-patternhub.outputs.path }}

jobs:
build-patternhub:
name: Build Patternhub
runs-on: ubuntu-latest
outputs:
path: ${{ steps.build.outputs.path }}
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -78,11 +84,13 @@ jobs:
return `/${context?.payload?.repository?.name}/${path}/${process.env.NAME}`
- name: 🔨 Build Patternhub
id: build
env:
NEXT_PUBLIC_BASE_PATH: ${{ steps.base-path.outputs.result }}
run: |
npx --no tsx scripts/md-resolve-svg.ts
npm run build --workspace=patternhub
echo "path=${NEXT_PUBLIC_BASE_PATH}" >> $GITHUB_OUTPUT
- name: ⏫ Upload Patternhub
uses: actions/upload-artifact@v4
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/02-e2e-regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
type:
required: true
type: string
path:
required: false
type: string

permissions:
actions: write
Expand Down Expand Up @@ -67,43 +70,46 @@ jobs:
env:
HOME: /root
TYPE: ${{ inputs.type }}
NEXT_PUBLIC_BASE_PATH: ${{ inputs.path }}
run: |
if [[ $TYPE == "components" ]]; then
npm run regenerate:screenshots --workspace=@db-ui/react-components
elif [[ $TYPE == "foundations" ]]; then
npm run regenerate:screenshots --workspace=@db-ui/foundations
elif [[ $TYPE == "patternhub" ]]; then
mkdir -p ./build-showcases${{ inputs.path }}
cp -RT ./build-showcases/${{ inputs.type }} ./build-showcases${{ inputs.path }}
npm run regenerate:screenshots --workspace=patternhub
else
npm run regenerate:screenshots --workspace=react-showcase
fi
- name: 🆙 Upload components
if: inputs.type == 'components'
if: always() && inputs.type == 'components'
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
path: ./__snapshots__/*/component
retention-days: 30

- name: 🆙 Upload foundations
if: inputs.type == 'foundations'
if: always() && inputs.type == 'foundations'
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
path: ./__snapshots__/foundations
retention-days: 30

- name: 🆙 Upload patternhub
if: inputs.type == 'patternhub'
if: always() && inputs.type == 'patternhub'
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
path: ./__snapshots__/*/patternhub
retention-days: 30

- name: 🆙 Upload showcase
if: inputs.type == 'showcases'
if: always() && inputs.type == 'showcases'
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/02-e2e-screen-reader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
fail-fast: false
matrix:
os: [macos-13, windows-2022]
shardIndex: [1, 2]
shardTotal: [2]
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4

- name: 🦮 Guidepup Setup
uses: guidepup/setup-action@0.16.0
uses: guidepup/setup-action@0.17.2
with:
record: true

Expand Down
Loading

0 comments on commit a2c7a19

Please sign in to comment.