Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 14, 2024
1 parent b7dbd13 commit a4a149a
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 92 deletions.
76 changes: 0 additions & 76 deletions .github/workflows/analyze-docs-bundle.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/deploy-docs-bundle-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
uses: ./.github/actions/vercel
id: deploy
env:
ANALYZE: 1
VERCEL_PROJECT_ID: prj_QnsiTm1ijJP6cS23K5da6lL02wbp
with:
token: ${{ secrets.VERCEL_TOKEN }}
Expand All @@ -80,6 +81,35 @@ jobs:
name: domains
path: domains.txt

- name: Analyze bundle
run: pnpm --package=nextjs-bundle-analysis dlx report

- name: Upload analysis
uses: actions/upload-artifact@v4
with:
name: analyze
path: packages/ui/docs-bundle/.next/analyze/

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2
if: success() && github.event.number
with:
workflow: nextjs_bundle_analysis.yml
branch: ${{ github.event.pull_request.base.ref }}
path: packages/ui/docs-bundle/.next/analyze/base

# https://infrequently.org/2021/03/the-performance-inequality-gap/
- name: Compare with base branch bundle
if: success() && github.event.number
run: ls -laR packages/ui/docs-bundle/.next/analyze/base && pnpm --package=nextjs-bundle-analysis dlx compare

- name: Comment PR Preview
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
filePath: packages/ui/docs-bundle/.next/analyze/__bundle_analysis_comment.txt
comment_tag: bundle_analysis

ete:
needs: deploy
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"build": "tsc --build",
"test": "vitest --run --passWithNoTests --globals --disable-console-intercept",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../.eslintignore",
"lint:eslint:fix": "pnpm lint:eslint --fix",
Expand Down
4 changes: 1 addition & 3 deletions packages/ui/app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"outDir": "./dist",
"rootDir": "."
},
"include": [
"./src/**/*"
],
"include": ["./src/**/*"],
"references": [
{
"path": "../../commons/core-utils"
Expand Down
1 change: 0 additions & 1 deletion packages/ui/chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"source": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"types": "src/index.ts",
"sideEffects": [
"*.css",
"*.scss"
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/chatbot/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../../commons/react/react-commons" }, { "path": "../components" }]
}
11 changes: 1 addition & 10 deletions packages/ui/chatbot/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"files": [],
"references": [
{
"path": "../../commons/react/react-commons"
},
{
"path": "../components"
},
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
],
"compilerOptions": {
"composite": true
}
]
}

0 comments on commit a4a149a

Please sign in to comment.