https://github.com/armanbilge/sbt-bundlemon
sbt plugin for monitoring Scala.js artifact size
https://github.com/armanbilge/sbt-bundlemon
bundle bundlesize github scala-js size
Last synced: 6 months ago
JSON representation
sbt plugin for monitoring Scala.js artifact size
- Host: GitHub
- URL: https://github.com/armanbilge/sbt-bundlemon
- Owner: armanbilge
- License: apache-2.0
- Created: 2022-07-12T14:13:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T23:52:11.000Z (10 months ago)
- Last Synced: 2025-03-29T03:21:34.324Z (7 months ago)
- Topics: bundle, bundlesize, github, scala-js, size
- Language: Scala
- Homepage: https://github.com/LironEr/bundlemon
- Size: 99.6 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# sbt-bundlemon
Track Scala.js bundle size in CI with [BundleMon](https://github.com/LironEr/bundlemon). Check out an [example PR](https://github.com/armanbilge/sbt-bundlemon/pull/7#issuecomment-1189183347).
## Configure
1. Install the [BundleMon App](https://github.com/apps/bundlemon) on your repository.
2. In `project/plugins.sbt` add:
```scala
addSbtPlugin("com.armanbilge" % "sbt-bundlemon" % "0.1.3")
```3. Enable the plugin on one or more _applications_ in your `build.sbt` (or anything that [exports to JavaScript](https://www.scala-js.org/doc/interoperability/export-to-javascript.html)):
```scala
lazy val todoMvc = project.in(file("todo-mvc"))
.enablePlugins(BundleMonPlugin)
.settings(
scalaJSUseMainModuleInitializer := true
)
```4. Add the following step to your CI workflow:
```yaml
- name: Monitor bundle size
run: sbt bundleMon
```5. Now you will get reports about the gzipped, fully-optimized bundle size in CI status and PR comments!
Please open issues and PRs for anything and everything :)