2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 10:46:31 +00:00

[PUI] Add codecov bundler analyzer (#8097)

* add codecov bundler analyzer

* Add CI step for upload

* control comment behaviour

* fix yarn.lock merge
This commit is contained in:
Matthias Mair
2024-09-14 01:30:30 +02:00
committed by GitHub
parent d4e67c0f03
commit a5ab4a30ea
5 changed files with 220 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
import { codecovVitePlugin } from '@codecov/vite-plugin';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import react from '@vitejs/plugin-react';
import { platform, release } from 'node:os';
@@ -40,6 +41,11 @@ export default defineConfig({
exclude: ['node_modules', 'test/'],
extension: ['.js', '.ts', '.tsx'],
requireEnv: true
}),
codecovVitePlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: 'pui_v1',
uploadToken: process.env.CODECOV_TOKEN
})
],
build: {