add deploy task

main
Yanick Champoux 2023-01-16 19:23:48 -05:00
parent 2eda5a388e
commit 0cae4d22c9
4 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ vite.config.js.timestamp-*
vite.config.ts.timestamp-*
pnpm-lock.yaml
.npmrc
dist

View File

@ -8,6 +8,10 @@ vars:
sh: git diff-ls --diff-filter=d main | grep -v .eslintignore
tasks:
deploy:
deps: [build]
cmds:
- rsync -av ./dist/ 192.168.0.100:/home/sky
build: vite build
dev: vite
test: vitest run src

View File

@ -5,6 +5,12 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Under Falling Skies</title>
<script
async
defer
data-website-id="951f0e25-5463-43a3-839e-eb3452488dca"
src="https://umami.babyl.ca/umami.js"
></script>
<script>
var global = global === undefined ? window : global;
</script>

View File

@ -8,6 +8,13 @@
</header>
<article>
{#if !$campaigns || $campaigns.length === 0}
<div class="fill medium-height middle-align center-align">
<div class="center-align">
<h5>No campaign created yet</h5>
</div>
</div>
{/if}
{#each $campaigns as campaign (campaign._id)}
<div class="row">
<i class="light-green-text">south_america</i>