##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r28:b88fac0e76c0 v1.0.0-rc13 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
build.gradle
73 lines | 1.8 KiB | text/x-groovy | GroovyLexer
plugins {
id "org.implab.gradle-typescript" version "1.3.3"
id "ivy-publish"
}
typescript {
compilerOptions {
lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"]
//listFiles = true
declaration = true
strict = true
types = []
module = "amd"
it.target = "es5"
experimentalDecorators = true
jsx = "react"
jsxFactory = "createElement"
moduleResolution = "node"
// dojo-typings are sick
skipLibCheck = true
// traceResolution = true
// baseUrl = "./"
// paths = [ "*": [ "$projectDir/src/typings/*" ] ]
// baseUrl = "$projectDir/src/typings"
// typeRoots = ["$projectDir/src/typings"]
}
tscCmd = "$projectDir/node_modules/.bin/tsc"
tsLintCmd = "$projectDir/node_modules/.bin/tslint"
esLintCmd = "$projectDir/node_modules/.bin/eslint"
}
configureTsMain {
compilerOptions {
/*baseUrl = "$projectDir/src"
paths = [
"dojo/*" : [ "typings/dojo/*" ],
"dijit/*" : [ "typings/dijit/*" ]
]*/
types = ["requirejs", "dojo-typings"]
}
}
configureTsTest {
compilerOptions {
typeRoots = []
types = ["requirejs", sources.main.output.typingsDir.get().toString() ]
}
}
npmPackMeta {
meta {
name = "@$npmScope/$project.name"
}
}
task npmPackTypings(type: Copy) {
dependsOn typings
npmPackContents.dependsOn it
from typescript.typingsDir
into npm.packageDir
}
task printVersion {
doLast {
println "packageName: ${npmPackMeta.metadata.get().name}";
println "version: $version";
println "target: $typescript.compilerOptions.target";
println "module: $typescript.compilerOptions.module";
println "symbols: $symbols";
}
}