Skip to content

Commit 9173aea

Browse files
authored
Merge pull request #22 from XenonAbe/coffeescript2
Upgrade to CoffeeScript 2
2 parents b19806c + 9756fd2 commit 9173aea

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ developers += Developer(
1414
addSbtJsEngine("1.3.5")
1515

1616
libraryDependencies ++= Seq(
17-
"org.webjars" % "coffee-script-node" % "1.11.0",
17+
"org.webjars.npm" % "coffeescript" % "2.7.0",
1818
"org.webjars" % "mkdirp" % "0.5.0"
1919
)
2020

src/main/resources/coffee.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
var args = process.argv,
88
fs = require("fs"),
9-
coffeeScript = require("coffee-script"),
9+
coffeeScript = require("coffeescript"),
1010
mkdirp = require("mkdirp"),
1111
path = require("path");
1212

src/sbt-test/sbt-coffeescript-plugin/coffee/build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ checkMapFileContents := {
1212
| "a.coffee"
1313
| ],
1414
| "names": [],
15-
| "mappings": "AAAA;AAAA,MAAA;;EAAA,MAAA,GAAW;;EACX,QAAA,GAAW;AADX"
15+
| "mappings": "AAAA;AAAA,MAAA,MAAA,EAAA;;EAAA,MAAA,GAAW;;EACX,QAAA,GAAW;AADX",
16+
| "sourcesContent": [
17+
| "number = 42\nopposite = true\n"
18+
| ]
1619
|}""".stripMargin) {
1720
sys.error(s"Unexpected contents: $contents")
1821
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-coffeescript" % sys.props("project.version"))
1+
sys.props.get("project.version") match {
2+
case Some(x) => addSbtPlugin("com.github.sbt" % "sbt-coffeescript" % x)
3+
case _ => sys.error("""|The system property 'project.version' is not defined.
4+
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
5+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-coffeescript" % sys.props("project.version"))
1+
sys.props.get("project.version") match {
2+
case Some(x) => addSbtPlugin("com.github.sbt" % "sbt-coffeescript" % x)
3+
case _ => sys.error("""|The system property 'project.version' is not defined.
4+
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
5+
}

0 commit comments

Comments
 (0)