Skip to content

Commit

Permalink
Fix build of frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Feb 20, 2018
1 parent 98721d6 commit f2e19fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions project/FrontEnd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ object FrontEnd extends AutoPlugin {
override def projectSettings = Seq[Setting[_]](
frontendFiles := {
val s = streams.value
s.log.info("Preparing front-end for prod ...")
s.log.info("Building front-end ...")
s.log.info("npm install")
Process("npm" :: "install" :: Nil, baseDirectory.value / "www") ! s.log
s.log.info("npm run build")
Process("npm" :: "run" :: "install" :: Nil, baseDirectory.value / "www") ! s.log
Process("npm" :: "run" :: "build" :: Nil, baseDirectory.value / "www") ! s.log
val dir = baseDirectory.value / "www" / "dist"
(dir.**(AllPassFilter) pair rebase(dir, "www"))
dir.**(AllPassFilter) pair rebase(dir, "www")
})
}

0 comments on commit f2e19fe

Please sign in to comment.