angularjs - How to set up build with git-hosted external frontend project included? -
i have play 2.2 application strickly used implement rest api.
i have in independent git repo angularjs application. application uses grunt , nodejs build.
the result of frontend application index.html + 1 js file , 1 css file.
ideally invoke grunt build script sbt builds angularjs app.
is there sbt plugin can use ?
what best approach should use simple way ?
at moment build manually , copy static resources play's public folder.
thanks in advance
i've never done before, quick google search gave me sbt-grunt-plugin last commit authored on feb 20, 2013 :(
the plugin bit outdated, doing i'd propose -- offers command (could task) wraps grunt (as plugin above does). may want read official documentation of sbt commands.
i declare dependency on angularjs/frontend project using rootproject
root
project frontend
(angularjs) , backend
(play framework) submodules - see how can sbt pull dependency artifacts git?:
lazy val frontend = rootproject(uri("git://...")) lazy val backend = project ...
the root
project auto-created sbt described in default root project:
if project not defined root directory in build, sbt creates default 1 aggregates other projects in build.
frontend
need have build.sbt
task created , should work (it might viable solution not tie projects , create unnecessary inter-dependencies).
Comments
Post a Comment