Skip to content

Commit

Permalink
next: cleanup (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Jul 26, 2024
1 parent 89c2953 commit 4760139
Show file tree
Hide file tree
Showing 495 changed files with 6,946 additions and 8,108 deletions.
67 changes: 8 additions & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand All @@ -49,29 +34,11 @@ jobs:
name: Lint
steps:
- uses: actions/checkout@v4
- name: Install Node.JS
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand All @@ -82,29 +49,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.JS
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: 8

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,11 @@ jobs:
name: Deploy Preview to Cloudflare Pages
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/docs-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,11 @@ jobs:
name: Publish to Cloudflare Pages
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Preview Release
on:
pull_request:
types: [ready_for_review, synchronize, opened, labeled]
paths: packages/**
paths: [packages/**]

jobs:
preview-release:
Expand All @@ -12,8 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
27 changes: 5 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,17 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20

# PNPM Store cache setup
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: pnpm

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

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
8 changes: 2 additions & 6 deletions NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ We could have some sort of `Validation` object that gets passed to an `onInvalid

```ts
type InvalidResult = {
type: "min" | "max" | "unavailable" | "custom"
type: "min" | "max" | "unavailable" | "custom";
message?: string;
}
};
```

Then the user can handle this in their own way, such as displaying a validation message in a `Validation` component, or calling a function that does whatever they need to do to handle the validation. Need to think more on this one.
Expand All @@ -30,7 +30,3 @@ They also need to be flexible enough to allow for reusing the same component whi
---

Should we embrace the [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState) API? Something to think about.
---
Need to determine how we'll handle users being able to cancel the `onEscapeKeydown` event.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ export default config({ svelte: true, ignores: [...DEFAULT_IGNORES, ...ignores]
rules: {
"no-unused-expressions": "off",
},
})
.override("huntabyte/svelte/rules", {
rules: {
"svelte/no-at-html-tags": "off",
},
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "0.5.13",
"svelte": "5.0.0-next.192",
"svelte": "5.0.0-next.199",
"svelte-eslint-parser": "^0.41.0",
"wrangler": "^3.44.0"
},
Expand All @@ -35,5 +35,6 @@
"pnpm": ">=8.7.0",
"node": ">=18"
},
"packageManager": "pnpm@8.15.8",
"private": true
}
16 changes: 9 additions & 7 deletions packages/bits-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@
"!dist/**/*.spec.*"
],
"devDependencies": {
"@melt-ui/pp": "^0.3.0",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/package": "^2.3.2",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@testing-library/dom": "^10.3.1",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/svelte": "^5.2.0",
"@testing-library/svelte": "^5.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest-axe": "^3.5.9",
"@types/node": "^20.14.10",
Expand All @@ -45,7 +44,7 @@
"jsdom": "^24.1.0",
"publint": "^0.2.8",
"resize-observer-polyfill": "^1.5.1",
"svelte": "5.0.0-next.192",
"svelte": "5.0.0-next.199",
"svelte-check": "^3.8.4",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
Expand All @@ -59,17 +58,20 @@
"@floating-ui/core": "^1.6.4",
"@floating-ui/dom": "^1.6.7",
"@internationalized/date": "^3.5.4",
"@melt-ui/svelte": "0.76.2",
"clsx": "^2.1.1",
"esm-env": "^1.0.0",
"nanoid": "^5.0.7",
"runed": "^0.15.0",
"scule": "^1.3.0",
"style-object-to-css-string": "^1.1.3",
"style-to-object": "^1.0.6",
"svelte-toolbelt": "^0.0.2"
"svelte-toolbelt": "^0.1.0"
},
"peerDependencies": {
"svelte": "^5.0.0-next.1"
}
},
"engines": {
"pnpm": ">=8.7.0",
"node": ">=18"
},
"packageManager": "pnpm@8.15.8"
}
Loading

0 comments on commit 4760139

Please sign in to comment.