The typescript-asset-pipeline
is an Asset Pipeline module that compiles TypeScript files using v1.6.2 of the compiler.
Note
|
This is a work in progress and will need more extensive testing, performance improvements, etc. Until version 1.0 it should not be considered production ready. |
This plugin will compile any file with a .ts
extension into corresponding JavaScript. It also supports the use of declaration files (d.ts
).
You can set additional compiler options by setting the typeScript map.
build.gradle
assets {
configOptions: [
typeScript: [
module:'commonjs' // (1)
target:'es5'
experimentalDecorators:true // (2)
]
]
}
-
This translates to
--module commonjs
-
Since a boolean is provided as the value, this is treated as a flag and translates to
--experimentalDecorators