Skip to content

Commit 6361102

Browse files
authored
task: simplify (#78)
* simplify * fix
1 parent b731335 commit 6361102

16 files changed

Lines changed: 2389 additions & 1575 deletions

.changeset/brown-grapes-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vite-plugin-pagefind": patch
3+
---
4+
5+
task: dependency bump

.changeset/config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3-
"changelog": "@changesets/cli/changelog",
4-
"commit": false,
5-
"fixed": [],
6-
"linked": [],
7-
"access": "public",
8-
"baseBranch": "main",
9-
"updateInternalDependencies": "patch",
10-
"ignore": []
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
1111
}
Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99

1010
jobs:
11-
release:
12-
name: Release
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v3
16-
- uses: oven-sh/setup-bun@v2
17-
- name: Install dependencies
18-
run: bun install
19-
- name: Create Release Pull Request or Publish to npm
20-
id: changesets
21-
uses: changesets/action@v1
22-
with:
23-
publish: bun changeset publish
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
version: 10
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 24
22+
cache: "pnpm"
23+
- run: pnpm i
24+
- name: Create Release Pull Request or Publish to npm
25+
id: changesets
26+
uses: changesets/action@v1
27+
with:
28+
publish: pnpm changeset publish
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/code-quality.yml

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
11
name: CI
22

33
on:
4-
pull_request:
4+
pull_request:
55

66
jobs:
7-
check:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v4
11-
- uses: oven-sh/setup-bun@v2
12-
- name: Install dependencies
13-
run: bun install
14-
- name: Run check
15-
run: bun run check
16-
build:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
- uses: oven-sh/setup-bun@v2
21-
- name: Install dependencies
22-
run: bun install
23-
- name: Run build
24-
run: bun run build
25-
test:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v4
29-
- uses: oven-sh/setup-bun@v2
30-
- name: Install dependencies
31-
run: bun install
32-
- name: Run tests
33-
run: bun run test
7+
format:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: pnpm/action-setup@v4
12+
with:
13+
version: 10
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 24
17+
cache: "pnpm"
18+
- run: pnpm install
19+
- run: pnpm format --check
20+
lint:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 10
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 24
30+
cache: "pnpm"
31+
- run: pnpm install
32+
- run: pnpm run lint
33+
build:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: pnpm/action-setup@v4
38+
with:
39+
version: 10
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: 24
43+
cache: "pnpm"
44+
- run: pnpm install
45+
- run: pnpm run build

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@ import { defineConfig } from "vite";
2424
import { pagefind } from "vite-plugin-pagefind";
2525

2626
export default defineConfig({
27-
plugins: [
28-
pagefind({
29-
outputDirectory: "<OUTPUT_DIRECTORY>",
30-
assetsDirectory: "<ASSETS_DIRECTORY>",
31-
bundleDirectory: "<BUNDLE_DIRECTORY>",
32-
buildScript: "<BUILD_SCRIPT>",
33-
developStrategy: "<DEVELOP_STRATEGY>",
34-
}),
35-
],
27+
plugins: [
28+
pagefind({
29+
outputDirectory: "<OUTPUT_DIRECTORY>",
30+
assetsDirectory: "<ASSETS_DIRECTORY>",
31+
bundleDirectory: "<BUNDLE_DIRECTORY>",
32+
buildScript: "<BUILD_SCRIPT>",
33+
developStrategy: "<DEVELOP_STRATEGY>",
34+
}),
35+
],
3636
});
3737
```
3838

3939
2. Add the post build step of running `pagefind` in your `package.json`:
4040

4141
```json
4242
{
43-
"scripts": {
44-
"<BUILD_SCRIPT>": "vite build && pagefind --site \"<OUTPUT_DIRECTORY>\""
45-
}
43+
"scripts": {
44+
"<BUILD_SCRIPT>": "vite build && pagefind --site \"<OUTPUT_DIRECTORY>\""
45+
}
4646
}
4747
```
4848

biome.json

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

0 commit comments

Comments
 (0)