Bower integration in play
If you want to use a package.json in your play application add
the webjars dependency a package.json in root and the following in sbt , so you can access the javascript libraries.
val bowerPath = SettingKey[String]("bower-path", "where bower is installed") lazy val bowerGenerateTaskImpl: Def.Initialize[Task[Seq[File]]] = (bowerPath, baseDirectory, streams) map { (bower, base, s) => try { Process("npm" :: "install" :: Nil) ! s.log Process(bower :: "install" :: "--allow-root" :: Nil, base) !
[Read More]