Skip to content

Commit 687f843

Browse files
committed
add version to main page
1 parent 6b9f59b commit 687f843

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PUBLIC_VERSION=1.0.0-beta.1

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ node_modules
1111
.DS_Store
1212
Thumbs.db
1313

14-
# Env
15-
.env
16-
.env.*
17-
!.env.example
18-
!.env.test
19-
2014
# Vite
2115
vite.config.js.timestamp-*
2216
vite.config.ts.timestamp-*

src/routes/+page.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<script lang="ts">
22
import CopyPaste from './CopyPaste.svelte';
33
import LazyComponent from './LazyComponent.svelte';
4+
5+
import { PUBLIC_VERSION } from '$env/static/public';
46
</script>
57

68
<div class="grid">
7-
<h1 class="example"># svelte-knobs</h1>
9+
<h1 class="example"># svelte-knobs {PUBLIC_VERSION}</h1>
810

911
<div class="example">
1012
<h2>Basic</h2>

0 commit comments

Comments
 (0)