npm can be used as well as WebJars by declaring a package.json file in the root of your project. Assets from npm packages are extracted into the same lib folder as WebJars so that, from a code perspective, there is no concern whether the asset is sourced from a WebJar or from an npm package.
I added package.json in my project folder and no one of my dependencies in package.json weren't added into lib. Also I try to add package.json in app folder but it wasn't helpfull
How can I use package.json correctly?
I added package.json in my project folder and no one of my dependencies in package.json weren't added into lib. Also I try to add package.json in app folder but it wasn't helpfull
[error] No such setting/task
[error] show web-node-modules
[error]
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/tCvxLiN4CHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.6")
//idea plugin
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
// web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.2")
build.sbt
name := """bet-search"""
version := "1.2.1"
scalacOptions += "-feature"
lazy val root = (project in file(".")).enablePlugins(PlayScala, SbtWeb)
scalaVersion := "2.11.1"
libraryDependencies ++= Seq(
ws,
cache,
"org.jsoup" % "jsoup" % "1.8.1"
)
pipelineStages := Seq(rjs, digest, gzip)