Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next: Svelte 5 #35

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
886f33e
init next
huntabyte Jul 29, 2024
2334042
next
huntabyte Jul 30, 2024
ff1f032
next
huntabyte Jul 30, 2024
be83a36
nexty
huntabyte Jul 30, 2024
c1142f4
idk;
huntabyte Jul 30, 2024
7a40d36
fix svelte2tsx
AdrianGonz97 Jul 30, 2024
af3fd68
abolish warnings
AdrianGonz97 Jul 30, 2024
b6ec2a2
stuff
huntabyte Jul 30, 2024
ab3b9eb
Merge branch 'next' of github.com:svecosystem/paneforge into next
huntabyte Jul 30, 2024
f854834
oops
AdrianGonz97 Jul 30, 2024
670105c
boom
huntabyte Jul 30, 2024
14247e7
preview release
huntabyte Jul 30, 2024
95558ff
formatting
huntabyte Jul 30, 2024
2b21048
help
huntabyte Jul 30, 2024
4149691
lint
huntabyte Jul 30, 2024
3adc5b8
update workflows
huntabyte Jul 30, 2024
8e04428
upate scripts
huntabyte Jul 30, 2024
167133c
scripts pls
huntabyte Jul 30, 2024
d819bb1
scripts pls
huntabyte Jul 30, 2024
0d32d7a
remove previews
huntabyte Aug 1, 2024
86cdd6a
Merge branch 'main' into next
huntabyte Sep 25, 2024
c62822f
tweaks
huntabyte Sep 25, 2024
b12b813
some updates
huntabyte Sep 25, 2024
a929555
Merge branch 'main' into next
huntabyte Sep 25, 2024
c72c30b
data-collapsed and data-expanded pane data attr
huntabyte Sep 25, 2024
0e89f3e
fix stuff
huntabyte Sep 25, 2024
0f85081
cleanup
huntabyte Oct 6, 2024
0394364
wb now
huntabyte Oct 6, 2024
5f2e551
maybe
huntabyte Oct 6, 2024
607a725
more
huntabyte Oct 6, 2024
3c862a8
merge main into next
huntabyte Oct 6, 2024
44ec138
Merge branch 'main' into next
huntabyte Oct 6, 2024
00106a9
update release ci script
huntabyte Oct 6, 2024
aad27de
next: enter prerelease mode (#46)
huntabyte Oct 6, 2024
629b2f5
use correct changeset plugin
huntabyte Oct 6, 2024
b4e7d21
Version Packages (next) (#47)
github-actions[bot] Oct 6, 2024
e36805b
Version Packages (next) (#48)
github-actions[bot] Oct 6, 2024
d0caad8
fix: use-id (#49)
huntabyte Oct 15, 2024
ca26c5f
Version Packages (next) (#50)
github-actions[bot] Oct 15, 2024
783f803
docs: use new Svecodocs (#57)
huntabyte Dec 18, 2024
297467b
fix: conditional issue (#58)
huntabyte Dec 18, 2024
7c3481b
Version Packages (next) (#59)
github-actions[bot] Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/chilled-monkeys-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paneforge": patch
---

fix: issue with useId causing duplicate IDs
5 changes: 5 additions & 0 deletions .changeset/large-zoos-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paneforge": major
---

Svelte 5
13 changes: 13 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"paneforge": "0.0.6",
"docs": "0.0.0"
},
"changesets": [
"chilled-monkeys-wink",
"large-zoos-obey",
"silent-rivers-sneeze"
]
}
5 changes: 5 additions & 0 deletions .changeset/silent-rivers-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paneforge": patch
---

fix: issue where conditional panes would increase size on show/hide
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1-documentation_change.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Report Docs Issue
description: Suggest an addition or modification to the documentation
labels: ["documentation"]
labels: [documentation]
body:
- type: dropdown
attributes:
Expand Down
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/2-feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🛠️ Request New Feature
description: Let us know what you would like to see added.
labels: ["enhancement"]
labels: [enhancement]
body:
- type: textarea
id: description
Expand All @@ -13,11 +13,11 @@ body:
attributes:
label: What type of pull request would this be?
options:
- "New Feature"
- "Enhancement"
- "Guide"
- "Docs"
- "Other"
- New Feature
- Enhancement
- Guide
- Docs
- Other
- type: textarea
id: references
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/3-bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "🐛 Bug report"
name: 🐛 Bug report
description: Report an issue with paneforge
body:
- type: markdown
Expand Down Expand Up @@ -32,7 +32,7 @@ body:
id: logs
attributes:
label: Logs
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text."
description: Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
render: bash
- type: textarea
id: system-info
Expand Down
4 changes: 2 additions & 2 deletions .github/reproduire/needs-reproduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please ensure that the reproduction is as **minimal** as possible. If there is a

You might also find these other articles interesting and/or helpful:

- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/mcve)
- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/mcve)

</details>
47 changes: 22 additions & 25 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,32 @@ name: Build Preview Deployment

# cancel in-progress runs on new commits to same PR (github.event.number)
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

on:
pull_request:
types: [opened, synchronize]
pull_request:
types: [opened, synchronize]

jobs:
build-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
build-preview:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install

- name: Install dependencies
run: pnpm install
- name: Build site
run: pnpm build

- name: Build site
run: pnpm build

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: preview-build
path: sites/docs/.svelte-kit/cloudflare
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: preview-build
path: docs/.svelte-kit/cloudflare
101 changes: 49 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,56 @@
name: CI

on:
push:
branches:
- main
pull_request:
push:
branches:
- main
- next
paths-ignore:
- ".changeset/**"
- README.md
- ".vscode/**"
- CHANGELOG.md
pull_request:
paths-ignore:
- ".changeset/**"
- README.md
- ".vscode/**"
- CHANGELOG.md

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

jobs:
Check:
name: Run svelte-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Sync
run: pnpm sync

- name: Run svelte-check
run: pnpm check

Lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8

- name: Install Node.JS
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install

- run: pnpm lint
Check:
name: Run svelte-check
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Run svelte-check
run: pnpm check

Lint:
runs-on: macos-latest
name: Lint
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- run: pnpm lint
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
deploy-preview:
runs-on: ubuntu-latest
runs-on: macos-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download build artifact
Expand Down
69 changes: 34 additions & 35 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
name: Production Deployment
on:
push:
branches:
- main
paths:
- sites/docs/**
- packages/paneforge/**
push:
branches:
- main
paths:
- docs/**
- packages/paneforge/**
workflow_dispatch:

jobs:
deploy-production:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy Production Site to Cloudflare Pages
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
deploy-production:
runs-on: macos-latest
permissions:
contents: read
deployments: write
name: Deploy Production Site to Cloudflare Pages
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Build site
run: pnpm build
- name: Build site
run: pnpm build

- name: Deploy to Cloudflare Pages
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: paneforge
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Production
- name: Deploy to Cloudflare Pages
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: paneforge
directory: ./.svelte-kit/cloudflare
workingDirectory: docs
deploymentName: Production
28 changes: 28 additions & 0 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Preview Release
on:
pull_request:
types: [ready_for_review, synchronize, opened, labeled]
paths: [packages/**]

jobs:
preview-release:
if: github.repository == 'svecosystem/paneforge' && contains(github.event.pull_request.labels.*.name, 'publish:preview')
timeout-minutes: 5
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: install dependencies
run: pnpm install

- name: build
run: pnpm build:packages

- name: publish preview
run: |
pnpx [email protected] publish --pnpm --compact './packages/*'
Loading