Skip to content

Commit febcc54

Browse files
committed
Merge branch 'v2-merge-main' into build/v2
2 parents 7968493 + b7dea95 commit febcc54

File tree

463 files changed

+15736
-11101
lines changed

Some content is hidden

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

463 files changed

+15736
-11101
lines changed

.changeset/changelog-github-custom.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ const changelogFunctions: ChangelogFunctions = {
1212
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
1313
);
1414
}
15-
if (dependenciesUpdated.length === 0) return '';
15+
if (dependenciesUpdated.length === 0) {
16+
return '';
17+
}
1618

1719
const changesetLink = `- Updated dependencies [${(
1820
await Promise.all(
1921
changesets.map(async (cs) => {
2022
if (cs.commit) {
21-
let { links } = await getInfo({
23+
const { links } = await getInfo({
2224
repo: options.repo,
2325
commit: cs.commit,
2426
});
@@ -45,12 +47,14 @@ const changelogFunctions: ChangelogFunctions = {
4547

4648
let prFromSummary: number | undefined;
4749
let commitFromSummary: string | undefined;
48-
let usersFromSummary: string[] = [];
50+
const usersFromSummary: string[] = [];
4951

5052
const replacedChangelog = changeset.summary
5153
.replace(/^\s*(?:pr|pull|pull\s+request):\s*#?(\d+)/im, (_, pr) => {
52-
let num = Number(pr);
53-
if (!isNaN(num)) prFromSummary = num;
54+
const num = Number(pr);
55+
if (!isNaN(num)) {
56+
prFromSummary = num;
57+
}
5458
return '';
5559
})
5660
.replace(/^\s*commit:\s*([^\s]+)/im, (_, commit) => {
@@ -91,7 +95,7 @@ const changelogFunctions: ChangelogFunctions = {
9195
}
9296
const commitToFetchFrom = commitFromSummary || changeset.commit;
9397
if (commitToFetchFrom) {
94-
let { links } = await getInfo({
98+
const { links } = await getInfo({
9599
repo: options.repo,
96100
commit: commitToFetchFrom,
97101
});

.eslintignore

Lines changed: 0 additions & 30 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,9 @@ jobs:
695695
- name: Playwright E2E Tests
696696
run: pnpm run test.e2e.${{ matrix.settings.browser }} --timeout 60000 --retries 7 --workers 1
697697

698+
- name: Playwright E2E Integration Tests
699+
run: pnpm run test.e2e.integrations.${{ matrix.settings.browser }} --timeout 60000 --retries 7 --workers 1
700+
698701
# RE-ENABBLE THIS AFTER qwik.dev/ packages are published
699702
# - name: Validate Create Qwik Cli
700703
# if: matrix.settings.host != 'windows-latest'

.github/workflows/deploy-docs.yml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,62 @@ jobs:
1919
deploy:
2020
name: Cloudflare Pages Deployment
2121
if: >
22-
github.repository == 'QwikDev/qwik' &&
23-
github.event.workflow_run.conclusion == 'success'
22+
github.repository == 'QwikDev/qwik'
2423
runs-on: ubuntu-latest
2524
steps:
25+
- name: Check for docs artifact
26+
id: check-artifact
27+
uses: actions/github-script@v7
28+
with:
29+
retries: 3
30+
script: |
31+
try {
32+
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
run_id: context.payload.workflow_run.id
36+
});
37+
const hasDocsArtifact = artifacts.data.artifacts.some(a => a.name === 'artifact-docs');
38+
core.setOutput('has-docs', hasDocsArtifact);
39+
} catch (error) {
40+
console.error('Error checking for artifacts:', error);
41+
core.setOutput('has-docs', false);
42+
}
43+
2644
- name: Checkout code
45+
if: ${{ steps.check-artifact.outputs.has-docs == 'true' }}
2746
uses: actions/checkout@v4
2847

2948
- name: Download docs artifact
49+
if: ${{ steps.check-artifact.outputs.has-docs == 'true' }}
3050
uses: actions/download-artifact@v4
31-
id: download-artifact
3251
with:
3352
name: artifact-docs
3453
github-token: ${{ secrets.GITHUB_TOKEN }}
3554
run-id: ${{ github.event.workflow_run.id }}
36-
# This will download both dist/ and server/
3755
path: packages/docs
3856

57+
- name: Verify dist directory exists
58+
if: ${{ steps.check-artifact.outputs.has-docs == 'true' }}
59+
run: |
60+
ls -la packages/docs
61+
if [ ! -d "packages/docs/dist" ]; then
62+
echo "Creating dist directory"
63+
mkdir -p packages/docs/dist
64+
cp -r packages/docs/* packages/docs/dist/ || true
65+
fi
66+
3967
# not the official version, so be careful when updating
4068
- name: Deploy to Cloudflare Pages
69+
if: ${{ steps.check-artifact.outputs.has-docs == 'true' }}
4170
uses: AdrianGonz97/refined-cf-pages-action@6c0d47ff7c97c48fa702b6d9f71f7e3a7c30c7d8
4271
with:
4372
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4473
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4574
projectName: 'qwik-docs'
4675
directory: packages/docs/dist
4776
githubToken: ${{ secrets.GITHUB_TOKEN }}
77+
78+
- name: Skip message when no docs artifact
79+
if: ${{ steps.check-artifact.outputs.has-docs != 'true' }}
80+
run: echo "No docs artifact found, skipping deployment"

.prettierignore

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@
22
**/*.log
33
**/.DS_Store
44
*.
5-
.history
6-
.yarn
7-
.yarnrc.yml
8-
.pnpm-store
95
pnpm-lock.yaml
10-
.mf
6+
.*
7+
!.eslintrc.cjs
8+
!.prettierignore
9+
!.prettierrc.json
10+
11+
# Build output
1112
dist
1213
dist-dev
1314
lib
14-
etc
15-
external
16-
node_modules
17-
qwik-app
1815
target
19-
output
20-
rollup.config.js
21-
build
22-
!packages/qwik/src/build
23-
.cache
24-
.rollup.cache
16+
starters/apps/**/dist
17+
node_modules
18+
2519
tsconfig.tsbuildinfo
26-
packages/docs/api/**/*
20+
21+
# REPL files
2722
packages/docs/public/repl/repl-sw.js*
28-
packages/docs/src/routes/**/*.mdx
29-
**/server/**/*.js
30-
starters/**/*.js
31-
# explicit exclusion for tailwind prettier.config.js
32-
starters/features/tailwind/*
33-
packages/docs/server
23+
24+
# build output
25+
packages/*/lib
26+
packages/*/dist
27+
packages/*/server
28+
29+
# API output files
3430
packages/docs/src/routes/api
35-
packages/docs/**/*.md
31+
32+
# Prettier doesn't handle mdx files well
3633
packages/docs/**/*.mdx
34+
3735
packages/insights/drizzle
3836
packages/insights/.netlify
3937
packages/insights/scripts
4038
packages/insights/**/*.gen.d.ts
4139

42-
# TODO: Figure out why this doesn't pass in CI
43-
packages/qwik/src/core/props/props.ts
44-
packages/docs/src/routes/docs/overview/index.mdx
40+
# insights cache files
41+
**/q-insights.json
42+
43+
# Exclude builder js files from formatting - delete after migration
44+
packages/docs/public/builder

Cargo.lock

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)