parent
567d430748
commit
64fa4bc88e
3 changed files with 19 additions and 1 deletions
13
.forgejo/workflows/build.yaml
Normal file
13
.forgejo/workflows/build.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Test devenv
|
||||
run: devenv shell devenv tasks run quotes:build
|
||||
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: quotes.zip
|
||||
path: dist/ # or path/to/artifact
|
||||
|
|
@ -4,4 +4,9 @@
|
|||
languages.javascript.enable = true;
|
||||
languages.javascript.pnpm.enable = true;
|
||||
languages.typescript.enable = true;
|
||||
|
||||
scripts.build.exec = "tsc -b --noCheck && vite build";
|
||||
tasks."quotes:build" = {
|
||||
exec = "pnpm i && pnpm run build";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import PocketBase from 'pocketbase'
|
||||
import { Quote, Collections, TypedPocketBase } from './pocketbase-types'
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
const pb = new PocketBase("https://api.m3.fyi") as TypedPocketBase
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue