Skip to content

Commit

Permalink
Test change bundle (#21)
Browse files Browse the repository at this point in the history
* Added relative bundle analyzer
  • Loading branch information
ra2dev authored Nov 1, 2024
1 parent 66d1694 commit fd17270
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup

Expand Down
6 changes: 6 additions & 0 deletions apps/next-app/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"use client";

import Image from "next/image";

import lodash from "lodash";
import styles from "./page.module.css";

export const dynamic = "force-dynamic";
export default function Home() {
return (
<div className={styles.page}>
Expand All @@ -15,6 +20,7 @@ export default function Home() {
/>
<ol>
<li>
{Object.keys(lodash)}
Get started by editing <code>app/page.tsx</code>.
</li>
<li>Save and see your changes instantly.</li>
Expand Down
10 changes: 6 additions & 4 deletions apps/next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"lint": "next lint"
},
"dependencies": {
"@types/lodash": "^4.17.13",
"lodash": "^4.17.21",
"next": "15.0.2",
"react": "19.0.0-rc-02c0e824-20241028",
"react-dom": "19.0.0-rc-02c0e824-20241028",
"next": "15.0.2"
"react-dom": "19.0.0-rc-02c0e824-20241028"
},
"nextBundleAnalysis": {
"budget": 102400,
Expand All @@ -21,11 +23,11 @@
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.2"
"eslint-config-next": "15.0.2",
"typescript": "^5"
}
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"private": true,
"scripts": {
"build": "turbo build",
"build:app": "turbo build --filter=@repo/app",
"build:docs": "turbo build --filter=@repo/docs",
"dev": "turbo dev",
"lint": "turbo lint",
"test": "turbo test"
Expand Down
31 changes: 21 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd17270

Please sign in to comment.