[+] Dynamic version number
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "amaoke",
|
"name": "amaoke",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "1.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import AppBar from "$lib/ui/appbar/AppBar.svelte"
|
import AppBar from "$lib/ui/appbar/AppBar.svelte"
|
||||||
import Button from "$lib/ui/Button.svelte"
|
import Button from "$lib/ui/Button.svelte"
|
||||||
|
import { version } from '$app/environment';
|
||||||
import "@fontsource/darumadrop-one"
|
import "@fontsource/darumadrop-one"
|
||||||
|
|
||||||
// Generate 20 random lines of hiragana
|
// Generate 20 random lines of hiragana
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="z-10">
|
<div class="z-10">
|
||||||
<div class="app-name text-32px">アマオケ</div>
|
<div class="app-name text-32px">アマオケ</div>
|
||||||
<div class="m3-font-body-medium mfg-on-surface-variant">FOSS 1.0.0</div>
|
<div class="m3-font-body-medium mfg-on-surface-variant">FOSS {version}</div>
|
||||||
<div class="m3-font-body-medium mfg-on-surface">
|
<div class="m3-font-body-medium mfg-on-surface">
|
||||||
Made with ♥ and 🔮 by <br>
|
Made with ♥ and 🔮 by <br>
|
||||||
<a href="https://maigo.dev" target="_blank" class="mfg-primary">MaigoLabs</a> 2025
|
<a href="https://maigo.dev" target="_blank" class="mfg-primary">MaigoLabs</a> 2025
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ const config = {
|
|||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
|
version: {
|
||||||
|
name: process.env.npm_package_version
|
||||||
|
},
|
||||||
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
||||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||||
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||||
|
|||||||
Reference in New Issue
Block a user