登录 注册

sbt-web

去点 Star
开发者工具内容创作与媒体工具自动化与工作流
372
Stars
65
Forks
16
Watchers
22
Open Issues
NOASSERTION
许可证
Scala
语言
2013-11-18
创建时间
2026-11-03
最近更新

项目能做什么

`sbt-web` 是一个用于构建 Web 类 sbt 插件的 Scala 库,可独立用于任何 sbt 项目。它主要解决前端资源处理问题,核心功能包括:规范 Web 资源目录结构、支持 sbt 任务细粒度增量执行、管理并解压 WebJars,以及提供标准化的编译错误报告。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
sbt-web
=======

[![sbt-web Scala version support](https://index.scala-lang.org/sbt/sbt-web/sbt-web/latest-by-scala-version.svg?platform=sbt1)](https://index.scala-lang.org/sbt/sbt-web/sbt-web)
[![Build Status](https://github.com/sbt/sbt-web/actions/workflows/build-test.yml/badge.svg)](https://github.com/sbt/sbt-web/actions/workflows/build-test.yml)


This project provides the building blocks for web oriented sbt plugins by bringing together the following concerns:

* File directory layout conventions for resources intended to be served by a web server (otherwise known as assets)
* Incremental execution of fine-grained operations within sbt tasks
* Utilities for managing [WebJars](http://www.webjars.org/) including the ability to extract a WebJar's contents on to disk
* Standardised reporting of compilation style errors

sbt-web was driven from the desire to factor out client-side web concerns from the [Play Framework](http://www.playframework.com/).
However, sbt-web is entirely independent of Play and can be used for any project that uses sbt as its build system.

Available Plugins
-----------------

The following is a list of plugins we know of that are built on sbt-web:

* [sbt-autoprefixer](https://github.com/matthewrennie/sbt-autoprefixer)
* [sbt-closure](https://github.com/ground5hark/sbt-closure#sbt-closure)
* [sbt-coffeescript](https://github.com/sbt/sbt-coffeescript#sbt-coffeescript)
* [sbt-coffeescript-reactjs](https://github.com/ShaggyYeti/sbt-coffeescript-reactjs)
* [sbt-concat](https://github.com/sbt/sbt-concat#sbt-concat)
* [sbt-css-compress](https://github.com/ground5hark/sbt-css-compress#sbt-css-compress)
* [sbt-digest](https://github.com/sbt/sbt-digest#sbt-digest)
* [sbt-dustjs-linkedin](https://github.com/jmparsons/sbt-dustjs-linkedin)
* [sbt-emberjs](https://github.com/dwickern/sbt-emberjs)
* [sbt-filter](https://github.com/rgcottrell/sbt-filter)
* [sbt-gzip](https://github.com/sbt/sbt-gzip#sbt-gzip)
* [sbt-handlebars](https://github.com/Amadeus82/sbt-handlebars)
* [sbt-hbs](https://github.com/bicouy0/sbt-hbs)
* [sbt-html-js-wrap](https://github.com/kolloch/sbt-html-js-wrap)
* [sbt-html-minifier](https://github.com/rgcottrell/sbt-html-minifier)
* [sbt-imagemin](https://github.com/rgcottrell/sbt-imagemin)
* [sbt-jasmine](https://github.com/joost-de-vries/sbt-jasmine)
* [sbt-jshint](https://github.com/sbt/sbt-jshint#sbt-jshint)
* [sbt-less](https://github.com/sbt/sbt-less#sbt-less)
* [sbt-mocha](https://github.com/sbt/sbt-mocha)
* [sbt-purescript](https://github.com/eamelink/sbt-purescript)
* [sbt-reactjs](https://github.com/ddispaltro/sbt-reactjs)
* [sbt-rjs](https://github.com/sbt/sbt-rjs#sbt-rjs)
* [sbt-sass](https://github.com/madoushi/sbt-sass)
* [sbt-sassify](https://github.com/irundaia/sbt-sassify)
* [sbt-puresass](https://chiselapp.com/user/twenstar/repository/sbt-puresass)
* [sbt-simple-url-update](https://github.com/neomaclin/sbt-simple-url-update#sbt-simple-url-update)
* [sbt-stylus](https://github.com/sbt/sbt-stylus)
阅读完整原文

项目深度分析 AI 生成

遗留 Scala/Play 项目构建现代化与前后端分离迁移服务

产品构想针对仍在使用 sbt-web(包括已废弃的 sbt-rjs/sbt-less 等)的老旧 Play Framework 企业级系统,提供平滑迁移方案,将其资产编译流水线解耦并升级为现代前端工具(Vite/Tailwind)。
核心功能构建流水线诊断、渐进式迁移方案设计、sbt 与现代前端开发服务器热重载桥接插件开发。
目标用户背负技术债务的中大型企业 IT 团队、金融及企业级 Scala 软件维护方。
难度/周期中等 · 2-4 周/单项目 · 成本:人力时间成本为主
收费模式按项目咨询费或按人天结算的工程交付费用
竞争风险目标存量市场萎缩,企业对遗留系统往往倾向于维持现状而非投入重构。
依据 已验证事实

现代前端工具(Vite/esbuild)与 sbt-web 集成桥接插件

产品构想开发并维护对接现代高速打包工具(如 Vite / esbuild / TailwindCSS)的现代 sbt-web 插件,替代原有性能较差的 Rhino/Node 旧插件体系。
核心功能Vite 开发服务器与 sbt run 代理集成、生产环境构建产物增量同步至 sbt-web assets 目录、错误信息适配 sbt 报告格式。
目标用户坚持单体部署、不愿将前后端完全解耦的全栈 Scala 独立开发者及中小型团队。
难度/周期中等 · 1-2 个月 · 成本:极低(主要是代码与维护工作量)
收费模式核心开源,通过 GitHub Sponsors、企业定制特性支持收费
竞争风险Scala 全栈 Web 新项目数量稀少,且多数团队已直接采用前后端分离独立容器化部署方案,插件受众极其小众。
依据 AI推测

企业级 Scala.js + sbt-web 全栈应用模版与企业支持

产品构想利用 sbt-web-scalajs 生态,构建开箱即用的企业级 Scala.js 全栈微架构模版(包含鉴权、SSR、热重载与 WebJars 管理),并提供商业支持。
核心功能生产就绪的 Play/Scala.js + sbt-web 脚手架、统一资产指纹管理、针对内网隔离环境的离线 WebJars 代理方案。
目标用户强类型全栈团队、Scala 忠实企业用户及技术顾问。
难度/周期高 · 2-3 个月 · 成本:服务器成本与维护成本
收费模式商业模版授权售卖、私有部署支持订阅制
竞争风险Scala.js 学习曲线陡峭且属于极小众生态,付费用户基数难以支撑独立全职运作。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2013-11-18,近 30 天仍在推送
社区活跃Star 372 / Fork 65 / Issue 22(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。