Include JavaScript/CoffeeScript projects in a Maven based infrastructure.
Can e.g. be used if client side logic is needed in a war project.
-
Creates a Maven jar artifact
-
Maven style directory layout
-
Module system (Common JS; with browserify)
-
Dependency management (with bower)
-
Unit Tests (with jasmine)
-
Continuous testing (with grunt watch)
-
CoffeeScript (optional)
-
Code minification (with Uglify)
-
Annotated Source Code (with Docco)
-
CSS tools?
- Grunt.js (needs node.js)
- Maven 2+ (needs Java)
- Maven:
- Get dependencies needed by Grunt to build project
- Start Grunt
- Get project dependencies
- Transcompile CoffeeScript to JavaScript
- Run unit tests
- Combine JavaScript Files
- Minify JavaScript
- Create Jar File