-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #93 #94
Fix #93 #94
Conversation
New settings: - webpackMonitoredDirectories - webpackMonitoredIncludeFilter New task: - webpackMonitoredFiles
Can one of the admins verify this patch? |
test this please |
Refer to this link for build results (access rights to CI server needed): |
* @see [[webpackMonitoredDirectories]] | ||
*/ | ||
val webpackMonitoredIncludeFilter: SettingKey[FileFilter] = | ||
settingKey[FileFilter]("Filter for files, monitored for webpack launch") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not reuse the existing includeFilter
key, scoped to the webpackMonitoredFiles
task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, of course. Scoped includeFilter
is more idiomatic. Will change this shortly.
generatedWebpackConfigFile +: | ||
customWebpackConfigFile ++: | ||
entries.map(_._2) ++: | ||
additionalFiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should also add stageTask.value.data
, which contains the .js code produced by Scala.js (the entries contain only the launcher files, which depend on them). I don’t know how we could automate the resolution of the dependencies among .js files…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. I seem to have lost this one in the transition.
Awesome, thanks! |
Implements changes proposed in #93:
scalaJSBundlerPackageJson
caching behavior.webpack
task caching settings.I had to use a slightly more involved API for monitored files (
webpackMonitoredDirectories
andwebpackMonitoredIncludeFilter
settings,webpackMonitoredFiles
task). A single file list setting is not flexible enough, and a file list task that is supposed to be overridden is overkill in most cases.Fixes #93