Skip to content

Commit edbdc91

Browse files
authored
refactor!: simplify module (#235)
Co-authored-by: lihbr <lihbr@users.noreply.github.com>
1 parent de9f3f4 commit edbdc91

81 files changed

Lines changed: 1260 additions & 3433 deletions

File tree

Some content is hidden

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Resolves: <!-- GitHub issue (e.g. #123, DT-123) -->
3232
<!-- A note for reviewers: -->
3333

3434
[^1]:
35-
Please use these labels when submitting a review:
36-
:question: #ask:&ensp;Ask a question.
37-
:bulb: #idea:&ensp;Suggest an idea.
38-
:warning: #issue:&ensp;Strongly suggest a change.
39-
:tada: #nice:&ensp;Share a compliment.
35+
Please use these labels when submitting a review:
36+
:question: #ask:&ensp;Ask a question.
37+
:bulb: #idea:&ensp;Suggest an idea.
38+
:warning: #issue:&ensp;Strongly suggest a change.
39+
:tada: #nice:&ensp;Share a compliment.

.github/workflows/prerelease-canary.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v6
18+
- uses: pnpm/action-setup@v4
1819
- uses: actions/setup-node@v6
1920
with:
2021
node-version: 24
@@ -28,7 +29,7 @@ jobs:
2829
fi
2930
env:
3031
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
- run: npm ci
32+
- run: pnpm install
3233
- name: "Generate new version"
3334
run: |
3435
SHORT_SHA=$(git rev-parse --short HEAD)

.github/workflows/prerelease-pr-cleanup.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
17+
- uses: pnpm/action-setup@v4
1718
- uses: actions/setup-node@v6
1819
with:
1920
node-version: 24

.github/workflows/prerelease-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v6
16+
- uses: pnpm/action-setup@v4
1617
- uses: actions/setup-node@v6
1718
with:
1819
node-version: 24
@@ -27,7 +28,7 @@ jobs:
2728
fi
2829
env:
2930
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
- run: npm ci
31+
- run: pnpm install
3132
- name: "Generate new version"
3233
run: |
3334
SHORT_SHA=$(git rev-parse --short HEAD)

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ jobs:
2121
release-type: node
2222
- uses: actions/checkout@v6
2323
if: ${{ steps.release.outputs.release_created }}
24+
- uses: pnpm/action-setup@v4
25+
if: ${{ steps.release.outputs.release_created }}
2426
- uses: actions/setup-node@v6
2527
if: ${{ steps.release.outputs.release_created }}
2628
with:
2729
node-version: 24
2830
registry-url: "https://registry.npmjs.org"
29-
- run: npm ci
31+
- run: pnpm install
3032
if: ${{ steps.release.outputs.release_created }}
3133
- run: npm publish --provenance
3234
if: ${{ steps.release.outputs.release_created }}

.github/workflows/validate.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v6
10+
- uses: pnpm/action-setup@v4
1011
- uses: actions/setup-node@v6
1112
with:
1213
node-version: 24
13-
cache: npm
14-
- run: npm ci
14+
cache: pnpm
15+
- run: pnpm install
1516
- run: npm run lint
1617

1718
build:
1819
runs-on: ubuntu-latest
1920
steps:
2021
- uses: actions/checkout@v6
22+
- uses: pnpm/action-setup@v4
2123
- uses: actions/setup-node@v6
2224
with:
2325
node-version: 24
24-
cache: npm
25-
- run: npm ci
26+
cache: pnpm
27+
- run: pnpm install
2628
- run: npm run build
2729

2830
test:
@@ -34,11 +36,12 @@ jobs:
3436
fail-fast: false
3537
steps:
3638
- uses: actions/checkout@v6
39+
- uses: pnpm/action-setup@v4
3740
- uses: actions/setup-node@v6
3841
with:
3942
node-version: ${{ matrix.node }}
40-
cache: npm
41-
- run: npm ci
43+
cache: pnpm
44+
- run: pnpm install
4245
- run: npm run unit
4346
env:
4447
E2E_PRISMIC_EMAIL: ${{ secrets.E2E_PRISMIC_EMAIL }}
@@ -53,10 +56,11 @@ jobs:
5356
fail-fast: false
5457
steps:
5558
- uses: actions/checkout@v6
59+
- uses: pnpm/action-setup@v4
5660
- uses: actions/setup-node@v6
5761
with:
5862
node-version: 24
59-
cache: npm
60-
- run: npm ci
61-
- run: npm install --no-save typescript@${{ matrix.typescript }} && npx tsc --version
63+
cache: pnpm
64+
- run: pnpm install
65+
- run: pnpm add typescript@${{ matrix.typescript }} && npx tsc --version
6266
- run: npm run types

.nuxtrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
imports.autoImport=false
22
typescript.includeWorkspace=true
3+
setups.@nuxtjs/prismic="4.1.0"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Nuxt.js Community
3+
Copyright (c) 2026 Nuxt.js Community
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ npx nuxi@latest module add prismic
3030
Then, configure your Prismic API endpoint:
3131

3232
```javascript
33-
import { defineNuxtConfig } from 'nuxt'
33+
import { defineNuxtConfig } from "nuxt"
3434

3535
export default defineNuxtConfig({
36-
modules: ['@nuxtjs/prismic'],
36+
modules: ["@nuxtjs/prismic"],
3737
prismic: {
38-
endpoint: 'my-repository'
38+
endpoint: "my-repository",
3939
},
40-
});
40+
})
4141
```
4242

4343
That's it! You can now use Prismic in your Nuxt app ✨

client/.nuxtrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)