Skip to content

Commit

Permalink
Merge branch 'main' into feat-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Dec 19, 2024
2 parents 4a35ef8 + 5b1ba2c commit ac341a8
Show file tree
Hide file tree
Showing 3,711 changed files with 35,211 additions and 17,504 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.

5 changes: 1 addition & 4 deletions .github/workflows/00-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ on:
jobs:
init:
name: Init
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/00-scan-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
TruffleHog:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/01-build-outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build-showcases:
name: Build outputs
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand All @@ -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
8 changes: 7 additions & 1 deletion .github/workflows/01-build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build-stencil-targets:
name: Build Packages
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down 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
10 changes: 9 additions & 1 deletion .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
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
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
2 changes: 1 addition & 1 deletion .github/workflows/01-build-showcases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
build-showcases:
name: Build Showcase ${{ inputs.showcase }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/01-get-playwright-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
playwright-version:
name: Get and save publish version
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
outputs:
version: ${{ steps.version.outputs.result }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/01-get-publish-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
jobs:
publish:
name: Get and save publish version
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
outputs:
release: ${{ steps.releaseCheck.outputs.release }}
preRelease: ${{ steps.releaseCheck.outputs.preRelease }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/01-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬️ Checkout repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/01-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬️ Checkout repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/02-e2e-foundations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
jobs:
playwright-foundations:
name: 🧪🎭 - foundations
runs-on: ubuntu-latest
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
container:
image: mcr.microsoft.com/playwright:v${{ inputs.version }}
steps:
Expand Down
Loading

0 comments on commit ac341a8

Please sign in to comment.