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