A Maven project that demonstrates how a JavaScript library can be built from TypeScript and integrated into a Webapp project.
This project consists of these modules
- example-library-js: A module that exposes an example javascript library
- Written in TypeScript and compiled to JavaScript via Grunt / Grunt Maven Plugin
- Contains a Jasmine based unit test as well as a code coverage report
- Packaged as a WebJAR
- example-webapp: An example webapp module that uses the javascript library
- Integrates the library via RequireJS
- Packaged as a WAR
mvn install
cd example-webapp
mvn jetty:run
- Open
http://localhost:8080