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

Minify with rdi plugin #32

Merged
merged 7 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
directory: ./lib
token: ${{ secrets.CODECOV_TOKEN }}
- uses: paambaati/codeclimate-action@v5.0.0
- uses: paambaati/codeclimate-action@v8.0.0
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down
1 change: 0 additions & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ This TurboRepo comprises the following packages/examples, all written in [TypeSc
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
- `@repo/jest-presets`: Jest presets for unit testing
- `@repo/logger`: A configurable shared logger utility
- `@repo/shared`: An internal library of components utilized by the examples
- `react18-loaders`: a React component library (The core package published to NPM)

Expand Down
1 change: 0 additions & 1 deletion examples/app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"postinstall": "next telemetry disable"
},
"dependencies": {
"@repo/logger": "workspace:*",
"@repo/scripts": "workspace:*",
"@repo/shared": "workspace:*",
"next": "^14.2.4",
Expand Down
6 changes: 6 additions & 0 deletions lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# nextjs-themes

## 3.1.6

### Patch Changes

- f9d99da: Minify better with rdiPlugin

## 3.1.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nextjs-themes",
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
"private": false,
"version": "3.1.5",
"version": "3.1.6",
"description": "Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.",
"license": "MPL-2.0",
"main": "./dist/index.js",
Expand Down Expand Up @@ -85,14 +85,14 @@
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/jest-presets": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@testing-library/react": "^16.0.0",
"@types/node": "^20.14.6",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-v8": "^1.6.0",
"esbuild-plugin-rdi": "^0.0.0",
"esbuild-plugin-react18": "0.2.4",
"esbuild-plugin-react18-css": "^0.0.4",
"jsdom": "^24.1.0",
Expand Down
4 changes: 3 additions & 1 deletion lib/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig, type Options } from "tsup";
import react18Plugin from "esbuild-plugin-react18";
import cssPlugin from "esbuild-plugin-react18-css";
import { rdiPlugin } from "esbuild-plugin-rdi";

export default defineConfig(
(options: Options) =>
Expand All @@ -13,8 +14,9 @@ export default defineConfig(
bundle: true,
minify: !options.watch,
esbuildPlugins: [
react18Plugin(),
react18Plugin({ disableJSXRequireDedup: true }),
cssPlugin({ generateScopedName: "nextjs-themes--[local]" }),
rdiPlugin(),
],
...options,
}) as Options,
Expand Down
14 changes: 0 additions & 14 deletions packages/jest-presets/browser/jest-preset.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/jest-presets/node/jest-preset.js

This file was deleted.

16 changes: 0 additions & 16 deletions packages/jest-presets/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions packages/logger/.eslintrc.js

This file was deleted.

30 changes: 0 additions & 30 deletions packages/logger/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions packages/logger/src/__tests__/log.test.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/logger/src/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/logger/tsconfig.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/logger/tsup.config.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/logger/turbo.json

This file was deleted.

7 changes: 7 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @repo/shared

## 0.0.4

### Patch Changes

- Updated dependencies [f9d99da]
- nextjs-themes@3.1.6

## 0.0.3

### Patch Changes
Expand Down
5 changes: 2 additions & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/shared",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"sideEffects": false,
"main": "./dist/index.js",
Expand All @@ -19,7 +19,6 @@
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/jest-presets": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@testing-library/react": "^16.0.0",
"@types/node": "^20.14.6",
Expand Down Expand Up @@ -56,4 +55,4 @@
"optional": true
}
}
}
}
Loading
Loading