playframework - How to prevent Play framework test execution from loading node modules? -
playframework - How to prevent Play framework test execution from loading node modules? -
in play framework application each time run "sbt test" tries load node modules due fact have package.json in application root.
here sbt file:
import play.playscala scalaversion := "2.11.1" name := """livrarium""" version := "0.1" librarydependencies ++= seq( "com.typesafe.play" %% "play-slick" % "0.8.0", "org.postgresql" % "postgresql" % "9.3-1102-jdbc4", "com.mohiva" %% "play-silhouette" % "1.0", "org.scaldi" %% "scaldi-play" % "0.4.1", "com.sksamuel.scrimage" %% "scrimage-core" % "1.4.1", "com.sksamuel.scrimage" %% "scrimage-canvas" % "1.4.1", "org.bouncycastle" % "bcprov-jdk16" % "1.45", "org.apache.pdfbox" % "pdfbox" % "1.8.6" ) lazy val root = (project in file(".")).enableplugins(playscala) as can see, there no sbt-web.
is there can restrict sbt loading node modules?
it turns out had web plugins enabled in /project/plugin.sbt
after removing these lines:
// web plugins addsbtplugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-less" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1") addsbtplugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0") sbt stoped trying load npm modules.
playframework sbt playframework-2.3 sbt-web
Comments
Post a Comment