-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adds support to publish as scala.js library #4
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4 +/- ##
=======================================
Coverage 40.27% 40.27%
=======================================
Files 3 3
Lines 72 72
=======================================
Hits 29 29
Misses 43 43
Continue to review full report at Codecov.
|
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.
Looks perfect to me, I just have one question about the libraryDependencies. Thanks @Voltir!
@@ -17,6 +19,9 @@ lazy val core = project.in(file("core")) | |||
tutTargetDirectory := file(".") | |||
) | |||
|
|||
lazy val coreJS = core.js | |||
lazy val coreJVM = core.jvm | |||
|
|||
lazy val commonSettings = Def.settings( |
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 don't really know a lot about how the Scala.js plugin works - do the libraryDependencies
in the commonSettings
need to use the %%%
separator?
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 know, im not entirely sure. As far as I can tell, %%%
wasn't needed, but maybe there is a runtime linker problem waiting to blow up if I use it more.
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.
Ok, let's merge it 👍
Im not entirely sure if this works with the publishSettings value you have to publish to sonatype, but
publishLocal
works.