Skip to content

Commit 3b89cf0

Browse files
authored
Merge pull request #19 from react18-tools/optimize
optimize
2 parents 63d2487 + 581ec47 commit 3b89cf0

31 files changed

+391
-2784
lines changed

.changeset/pretty-boats-refuse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nextjs-darkmode": patch
3+
---
4+
5+
Optimize

.github/workflows/docs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ jobs:
2929
git pull
3030
- run: npm i -g pnpm && pnpm i
3131
name: Install dependencies
32-
- name: Test
33-
run: npm test
3432
- run: git status && git clean -f -d && git status
3533
name: clean up working directory
3634
- run: npx @turbo/codemod update . && pnpm update --latest -r
3735
name: Update dependencies
38-
- run: pnpm build
36+
- run: pnpm build --filter @example/nextjs
3937
name: Build all apps to make sure it is not broken due to dependency upgrades
4038
- name: Run unit tests
4139
run: pnpm test

examples/nextjs-pages/.eslintrc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { nextJsConfig } from "@repo/eslint-config/next.js";
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default nextJsConfig;

examples/nextjs/.eslintrc.js

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

examples/nextjs/eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { nextJsConfig } from "@repo/eslint-config/next.js";
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default nextJsConfig;

examples/nextjs/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference types="next/navigation-types/compat/navigation" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

examples/tailwind/.eslintrc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { nextJsConfig } from "@repo/eslint-config/next.js";
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default nextJsConfig;

examples/vite/.eslintrc.js

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

0 commit comments

Comments
 (0)