-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded sbt to 1.6, scala.js to 1.8 and webpack to 5 (#3)
- Loading branch information
1 parent
ad6d00f
commit 8751d1f
Showing
14 changed files
with
98 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.class | ||
*.log | ||
package-lock.json | ||
|
||
# sbt specific | ||
.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-J-Xmx2G | ||
-J-XX:+UseG1GC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
const merge = require("webpack-merge") | ||
const { merge } = require("webpack-merge") | ||
|
||
const generatedConfig = require('./scalajs.webpack.config') | ||
const commonClientConfig = require("./scommons.webpack.config.js") | ||
|
||
module.exports = merge(generatedConfig, commonClientConfig) | ||
module.exports = merge(generatedConfig, commonClientConfig, { | ||
performance: { | ||
hints: false | ||
}, | ||
|
||
mode: 'production' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.5.2 | ||
sbt.version = 1.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package definitions | ||
|
||
import org.scoverage.coveralls.CIService | ||
|
||
import scala.io.Source | ||
import scala.util.parsing.json.{JSON, JSONObject} | ||
|
||
case object GitHubActionsCI extends CIService { | ||
val name = "" | ||
val jobId: Option[String] = sys.env.get("GITHUB_RUN_ID") | ||
|
||
// https://github.com/coverallsapp/github-action/blob/master/src/run.ts#L31-L40 | ||
val pullRequest: Option[String] = for { | ||
eventName <- sys.env.get("GITHUB_EVENT_NAME") if eventName.startsWith("pull_request") | ||
payloadPath <- sys.env.get("GITHUB_EVENT_PATH") | ||
source = Source.fromFile(payloadPath, "utf-8") | ||
lines = try source.mkString finally source.close() | ||
payload <- JSON.parseRaw(lines) | ||
prNumber <- payload.asInstanceOf[JSONObject].obj.get("number") | ||
} yield prNumber.toString.stripSuffix(".0") | ||
|
||
// https://docs.github.com/en/actions/learn-github-actions/environment-variables | ||
val currentBranch: Option[String] = pullRequest match { | ||
case Some(_) => sys.env.get("GITHUB_HEAD_REF") | ||
case None => sys.env.get("GITHUB_REF_NAME") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters