Skip to content

Commit

Permalink
vinvoor: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Jan 17, 2025
1 parent 5a6254e commit bf0cf9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vinvoor/src/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function Footer() {
<img src={ReactIcon} />
</Icon>
v
{import.meta.env.VITE_APP_VERSION}
{__APP_VERSION__}
</Link>
</Tooltip>
</TypographyG>
Expand Down
11 changes: 11 additions & 0 deletions vinvoor/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import svgr from "vite-plugin-svgr";

const generateRandomVersion = () => {

Check failure on line 5 in vinvoor/vite.config.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

Top-level functions should be declared with function keyword
const minor = Math.floor(Math.random() * 10);
const patch = Math.floor(Math.random() * 100).toString().padStart(2, '0');

Check failure on line 7 in vinvoor/vite.config.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

Strings must use doublequote
return `1.${minor}.${patch}`

Check failure on line 8 in vinvoor/vite.config.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

Missing semicolon
}

Check failure on line 9 in vinvoor/vite.config.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

Missing semicolon

const appVersion = generateRandomVersion();

// https://vitejs.dev/config/
export default defineConfig({
plugins: [svgr(), react()],
define: {
__APP_VERSION__: JSON.stringify(appVersion)

Check failure on line 17 in vinvoor/vite.config.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

Missing trailing comma
}

Check failure on line 18 in vinvoor/vite.config.ts

View workflow job for this annotation

GitHub Actions / format-and-lint

Missing trailing comma
});

0 comments on commit bf0cf9f

Please sign in to comment.