Layer 0: Set up Mill module for dashboard with Vite + Tailwind + Web Awesome #345
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#345
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Layer: 0 — Build Infrastructure
Parent: #343
Problem
The current dashboard is compiled as part of
core/via scala-cli. To adopt a modern frontend stack (Vite + Tailwind CSS v4 + Web Awesome components), we need a proper build tool that can manage the frontend pipeline.Solution
dashboardmodule that depends on core types (either by compilingcore/source or depending on the pre-builtiw-core.jar)@tailwindcss/viteplugin, scanning Scala source for class names via@sourcedirectivescalatags-webawesomebridge (cherry-picked component imports inmain.js)Reference implementation
The procedures project (
~/ops/procedures-PROC-274) has a working example of this stack:dashboard-frontend/vite.config.js— Vite + Tailwind plugindashboard-frontend/src/main.js— Web Awesome component importsdashboard-frontend/src/main.css— Tailwind with@sourcescanning Scala filesdashboard-jvm/src/content/HtmlTemplates.scala— Scalatags + Web Awesome tagsKey decisions
core/dashboard/to a dedicateddashboard/moduledashboard.scalaandserver-daemon.scalacommands launch the built dashboard jarNew directory structure
Completed — merged in PR #370.