File tree 3 files changed +14
-5
lines changed
scalafix/src/main/scala/org/scalajs/dom/scalafix
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- rules = []
2
-
3
- // Run automatically via (scalafixOnCompile := true)
4
- triggered.rules = [
1
+ rules = [
5
2
GenerateApiReport ,
6
3
]
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ lazy val root = project
14
14
.enablePlugins(ScalaJSPlugin )
15
15
.enablePlugins(ScalafixPlugin )
16
16
.dependsOn(scalafixRules % ScalafixConfig )
17
- .settings(scalafixOnCompile := true )
18
17
19
18
name := " Scala.js DOM"
20
19
@@ -123,3 +122,15 @@ lazy val example = project.
123
122
settings(commonSettings : _* ).
124
123
settings(noPublishSettings : _* ).
125
124
dependsOn(root)
125
+
126
+ addCommandAlias(" prePR" , " +prePR_nonCross" )
127
+
128
+ val prePR_nonCross = taskKey[Unit ](" Performs all necessary work required before submitting a PR, for a single version of Scala." )
129
+
130
+ ThisBuild / prePR_nonCross := Def .sequential(
131
+ root / clean,
132
+ root / Compile / scalafmt,
133
+ root / Compile / compile,
134
+ (root / Compile / scalafix).toTask(" " ),
135
+ example / Compile / compile,
136
+ ).value
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ class GenerateApiReport extends SemanticRule("GenerateApiReport") {
121
121
| $api
122
122
| """ .stripMargin
123
123
124
+ println(s " [info] Generating $reportFile" )
124
125
Files .write(reportFile, content.getBytes(StandardCharsets .UTF_8 ))
125
126
}
126
127
}
You can’t perform that action at this time.
0 commit comments