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

Feat/bundle size tracking #127

Merged
merged 2 commits into from
Sep 13, 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: 2 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: yarn prettier:check
- name: Build
run: yarn build
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Lint
run: yarn lint
- name: Recreate JSON Schemas
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default tseslint.config(
},
languageOptions: {
parserOptions: {
project: ['tsconfig.eslint.json'],
project: ['tsconfig.json'],
tsconfigRootDir: import.meta.dirname,
},
},
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@codecov/vite-plugin": "^1.0.1",
"typescript": "^5.6.2",
"vite": "^5.4.4",
"vitest": "^2.1.0"
Expand Down
21 changes: 21 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { codecovVitePlugin } from '@codecov/vite-plugin'
import { defineConfig } from 'vite'

// https://vitejs.dev/config/

export default defineConfig(async () => {
return {
plugins: [
codecovVitePlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: 'shades-showcase-app',
uploadToken: process.env.CODECOV_TOKEN,
}),
],
build: {
rollupOptions: {
external: ['vitest'],
},
},
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
]
},
"scripts": {
"build": "tsc -b && yarn workspace frontend build",
"build": "tsc -b common service frontend && yarn workspace frontend build",
"create-schemas": "yarn workspace common create-schemas",
"seed": "yarn workspace service seed",
"test:e2e": "yarn playwright test",
Expand Down
19 changes: 0 additions & 19 deletions tsconfig.eslint.json

This file was deleted.

5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,5 @@
"experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
"emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
"skipLibCheck": true
},
"files": [],
"include": [],
"references": [{ "path": "./frontend" }, { "path": "./service" }, { "path": "./common" }]
}
}
Loading
Loading