-
Notifications
You must be signed in to change notification settings - Fork 6
CommonJS module #20
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
CommonJS module #20
Changes from 4 commits
b07abaa
64677a4
f8e3a24
a7ea10c
485234e
290087d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
The `build.sbt` file contains two configurations: | ||
* `jquery-global-demo` uses global jQuery dependency. | ||
* `jquery-bundler-demo` uses `ScalaJSBundlerPlugin` in order to manage module dependencies. | ||
|
||
### How to use? | ||
|
||
Run `sbt fastOptJS` or `sbt fullOptJS` to compile this demo. You can find all generated files | ||
in the `generated` directory. Open `index.html` in your browser. | ||
Run `sbt jquery-global-demo/fastOptJS` or `sbt jquery-global-demo/fullOptJS` to compile this demo. You can find all generated files | ||
in the `generated/global` directory. Open `index.html` in your browser. | ||
|
||
### How to use? (ScalaJSBundlerPlugin) | ||
|
||
Run `sbt jquery-bundler-demo/compileStatics` to compile this demo. You can find all generated files | ||
in the `generated/bundler` directory. Open `index.html` in your browser. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>jquery-demo - ScalaJSBundlerPlugin demo</title> | ||
<script src="scripts/frontend.js"></script> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's considered a good practice to put the scripts at the bottom of |
||
</head> | ||
<body> | ||
<div id="application"></div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import sbt._ | |
|
||
object Dependencies { | ||
val udashCoreVersion = "0.6.1" | ||
val udashJQueryVersion = "2.0.0" | ||
val udashJQueryVersion = "3.0.0-SNAPSHOT" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
||
val deps = Def.setting(Seq[ModuleID]( | ||
"io.udash" %%% "udash-core-frontend" % udashCoreVersion, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.2.0 | ||
sbt.version = 1.2.6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
logLevel := Level.Warn | ||
|
||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.24") | ||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.25") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.13.1") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.2.0 | ||
sbt.version = 1.2.6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
logLevel := Level.Warn | ||
|
||
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.2.0" | ||
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "0.3.0" | ||
|
||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.24") | ||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.25") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.13.1") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn 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.
You'll change it before releasing, right? ;)
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.
Right :)