Skip to content

Example Project with JSHint, Jasmine, Karma with Coverage, and LiveReload based on

License

Notifications You must be signed in to change notification settings

okwolf/maven-frontend-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is most useful if your Maven web project:

  • Has only static content
  • Is fed dynamic data from a separate API (REST, perhaps?)

Usage

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.

Thanks

Major inspiration courtesy of: https://github.com/eirslett/frontend-maven-plugin/tree/master/frontend-maven-plugin/src/it/example%20project

License

MIT