typescript-gradle-plugin
typescript-gradle-plugin copied to clipboard
Bundle TypeScript compiler with the plugin
Include the tsc.js and *.d.ts files from a TypeScript node.js installation in the plugin.
Call the compiler by invoking the node executable. node tsc.js [Arguments for tsc]
Keep the "old way" of calling the tsc executable so users have a fall back if a new TypeScript version has been released but there is no update to the Gradle plugin yet.
Maybe use ProcessBuilder b = new ProcessBuilder("node tsc.js", "-args");