3.0.4 • Published 3 months ago
@voltaserve/ui v3.0.4
Voltaserve UI
Web app and extensible React component.
Use as a React Component
Installation:
npm i @voltaserve/ui
Usage:
import { Voltaserve } from '@voltaserve/ui'
import { createRoot } from 'react-dom/client'
createRoot(document.getElementById('root') as HTMLElement).render(
<Voltaserve extensions={/*...*/} />
)
Build:
bun run build:rollup
Use as a Web App
Install dependencies:
bun i
Run for development:
bun run dev
Build for production:
bun run build
Run for production:
go run .
Lint TypeScript code:
bun run lint
Format TypeScript code:
bun run format
Format Go code:
gofumpt -w . && \
gofmt -s -w . && \
goimports -w . && \
golangci-lint run --fix
Lint Go code:
golangci-lint run
Build Docker Image:
docker build -t voltaserve/ui .