Skip to content

Example project that brings Java and TypeScript together in a Maven/Grunt build environment

Notifications You must be signed in to change notification settings

pkaul/maven-typescript-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A TypeScript/Maven Example Project

A Maven project that demonstrates how a JavaScript library can be built from TypeScript and integrated into a Webapp project.

Module Structure

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

Prepare

Build and Run

  • mvn install
  • cd example-webapp
  • mvn jetty:run
  • Open http://localhost:8080

About

Example project that brings Java and TypeScript together in a Maven/Grunt build environment

Resources

Stars

Watchers

Forks

Packages

No packages published