mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 02:59:13 +00:00
* refactor: decouple core logic from global configuration * fix: apply consistent error handling across application * refactor: improve component rendering for better performance * feat: migrate views to use directory for components * feat: streamline UI imports and package structure * feat: update templ version to v0.3.865 * feat: enhance application observability with status check * refactor: decouple database setup from command line tools * refactor: replace card component with styled divs for improved customization * refactor: rename and move Helia console components to blocks * chore: reorganize controllers under handlers * feat: implement home page UI with registration form * <no value> * fix: correct file path in templ error messages * refactor: use web component for connection status indicator * feat: enhance connection status indicator with visual cue * chore: move Helia initialization script to helia package * refactor: rename 'appComponent' to 'consoleComponent' * chore: standardize import paths across vault package * feat: introduce common error definitions for API responses * refactor: centralize handle input logic into reusable component * style: adjust user handle input for better visual feedback * build: update templ generated files * feat: automate builds, archives, and releases * ci: consolidate publishing workflows for improved automation * ci: simplify deployment workflows and leverage Cloudflare * ci: allow manual deployment initiation * ci: add trigger for deploy workflow * docs: Update README with new development workflow and component details
125 lines
2.3 KiB
YAML
125 lines
2.3 KiB
YAML
#yaml-language-server: $schema=https://json.schemastore.org/taskfile
|
|
version: "3"
|
|
silent: true
|
|
vars:
|
|
ROOT_DIR:
|
|
sh: git rev-parse --show-toplevel
|
|
|
|
tasks:
|
|
clean:
|
|
desc: Remove build artifacts
|
|
cmds:
|
|
- task: tidy:vault
|
|
- task: tidy:front
|
|
- task: tidy:root
|
|
|
|
serve:
|
|
desc: Serve the app with air
|
|
cmd: air
|
|
|
|
deploy:
|
|
desc: Deploy all
|
|
cmds:
|
|
- task: deploy:vault
|
|
- task: deploy:front
|
|
|
|
build:
|
|
desc: Build all
|
|
cmds:
|
|
- task: build:vault
|
|
- task: build:front
|
|
|
|
start:vault:
|
|
desc: Start the vault
|
|
dir: "{{.ROOT_DIR}}/cmd/vault"
|
|
cmd: bun run start
|
|
|
|
start:front:
|
|
desc: Start the frontend
|
|
dir: "{{.ROOT_DIR}}/cmd/front"
|
|
cmd: bun run start
|
|
|
|
build:vault:
|
|
desc: Build the vault
|
|
dir: "{{.ROOT_DIR}}/cmd/vault"
|
|
cmd: bun run build
|
|
sources:
|
|
- main.go
|
|
generates:
|
|
- build/app.wasm
|
|
|
|
build:front:
|
|
desc: Build the frontend
|
|
dir: "{{.ROOT_DIR}}/cmd/front"
|
|
cmd: bun run build
|
|
sources:
|
|
- main.go
|
|
generates:
|
|
- build/app.wasm
|
|
|
|
deploy:vault:
|
|
desc: Deploy the vault
|
|
dir: "{{.ROOT_DIR}}/cmd/vault"
|
|
cmds:
|
|
- bun run deploy
|
|
|
|
deploy:front:
|
|
desc: Deploy the frontend
|
|
dir: "{{.ROOT_DIR}}/cmd/front"
|
|
cmd: bun run deploy
|
|
|
|
gen:templ:
|
|
desc: Generate templ
|
|
cmds:
|
|
- templ generate
|
|
- rm -rf .task
|
|
|
|
gen:sqlc:
|
|
desc: Generate sqlc
|
|
cmd: sqlc generate
|
|
|
|
db:migrate:
|
|
desc: Migrate the database
|
|
prompt:
|
|
- Are you sure you want to run this command? This will delete all data in the database.
|
|
cmds:
|
|
- task: migrate:d1
|
|
- task: gen:sqlc
|
|
|
|
migrate:d1:
|
|
internal: true
|
|
desc: Migrate the common database
|
|
dir: "{{.ROOT_DIR}}/cmd/vault"
|
|
cmd: npm run migrate
|
|
sources:
|
|
- schema.sql
|
|
generates:
|
|
- schema.sql
|
|
|
|
|
|
tidy:vault:
|
|
desc: Go mod tidy the vault
|
|
internal: true
|
|
dir: "{{.ROOT_DIR}}/cmd/vault"
|
|
cmds:
|
|
- bun run clean
|
|
- rm -rf ./build
|
|
- rm -rf ./dist
|
|
|
|
tidy:front:
|
|
desc: Go mod tidy the frontend
|
|
internal: true
|
|
dir: "{{.ROOT_DIR}}/cmd/front"
|
|
cmds:
|
|
- bun run clean
|
|
- rm -rf ./build
|
|
- rm -rf ./dist
|
|
|
|
tidy:root:
|
|
desc: Go mod tidy the root
|
|
internal: true
|
|
dir: "{{.ROOT_DIR}}"
|
|
cmds:
|
|
- go mod tidy
|
|
- rm -rf .task
|