This project is most useful if your Maven web project:
- Has only static content
- Is fed dynamic data from a separate API (REST, perhaps?)
- Don't forget to add a proxy middleware if your API doesn't support CORS
Use mvn compile frontend:grunt
to develop with auto JSHint, Jasmine, Karma with Coverage, and LiveReload.
After building this you can take the repo to any machine of the same platform (no Maven required!) and simply cd target/frontend && chmod +x grunt && ./grunt
to do your development.
Use mvn jetty:run-war
to test in a more "production" setting where the WAR is built and deployed.
Major inspiration courtesy of: https://github.com/eirslett/frontend-maven-plugin/tree/master/frontend-maven-plugin/src/it/example%20project
MIT