For an example on how to use the plugin, see the Spaghetti Gradle example here. Gradle 2.0 or newer is required to use the plugin.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.prezi.spaghetti:gradle-spaghetti-typescript-plugin:<version>"
}
}
apply plugin: "spaghetti-typescript"
The plugin configures the following things on the project:
- Applies the Spaghetti plugin
- Applies the TypeScript plugin
- Sets Spaghetti's target language to
typescript
- Configures the TypeScript plugin to include generated Spaghetti sources when compiling artifacts