##// END OF EJS Templates
Amd tests are passed
Amd tests are passed

File last commit:

r91:36a42b1ae292 ts-plugin
r91:36a42b1ae292 ts-plugin
Show More
build.gradle
141 lines | 3.2 KiB | text/x-groovy | GroovyLexer
cin
Move to org.implab.gradle-typescript
r87 plugins {
cin
migrating to new project plugin 1.0.1-rc1
r88 id "org.implab.gradle-typescript" version "1.0.1-rc1"
cin
Move to org.implab.gradle-typescript
r87 }
cin
generate package version from mercurial tags
r61 // если версия явно не заданы вычисляем ее из тэга ревизии v.{num}***
// результатом будет версия '{num}.{distance}' где distance - расстояние от
// текущей ревизии до ревизии с тэгом
cin
added markRelease task
r68 def tagDistance = 0;
cin
generate package version from mercurial tags
r61 if (!version) {
cin
added markRelease task
r68
cin
generate package version from mercurial tags
r61 def rev = ["hg", "log", "-r", ".", "--template", "{latesttag('re:^v') % '{tag}-{distance}'}"].execute().text.trim();
def tagVersion;
cin
added markRelease task
r68 def match = (rev =~ /^v(\d+\.\d+\.\d+).*-(\d+)$/);
cin
generate package version from mercurial tags
r61
if (match.size()) {
tagVersion = match[0][1];
tagDistance = match[0][2].toInteger();
} else {
throw new Exception("A version must be specied");
}
cin
added markRelease task
r68 version = tagVersion;
if (tagDistance > 0)
version++;
cin
generate package version from mercurial tags
r61 } else {
println "explicit version: $version";
}
if (hasProperty('versionSuffix') && versionSuffix) {
version += "-$versionSuffix"
cin
split @implab/core into a separate repository
r27 }
cin
repository reorganized
r0
cin
migrating tests to the new project structure
r89 if(! jsmodule in ["amd", "commonjs", "system", "umd", "es6", "esnext"])
cin
working on support commonjs modules format
r59 throw new Exception("Invalid jsmodule specified: $jsmodule");
cin
migrating tests to the new project structure
r89 if(! target in ["es3", "es5", "es6", "es2016", "es2017", "esnext"])
cin
working on support commonjs modules format
r59 throw new Exception("Invalid target specified: $target")
cin
working version...
r51
cin
Move to org.implab.gradle-typescript
r87 ext {
packageName = "@$npmScope/$npmName"
}
cin
working version...
r51
cin
Move to org.implab.gradle-typescript
r87 def jstarget = target;
cin
working on support commonjs modules format
r59
cin
Move to org.implab.gradle-typescript
r87 sources {
cin
migrating tests to the new project structure
r89 amd {
cin
migrating to new project plugin 1.0.1-rc1...
r90 typings {
srcDir main.output.typingsDir
}
cin
migrating tests to the new project structure
r89 }
cjs {
cin
migrating to new project plugin 1.0.1-rc1...
r90 typings {
srcDir main.output.typingsDir
}
}
testAmd {
typings {
srcDir main.output.typingsDir
srcDir amd.output.typingsDir
srcDir test.output.typingsDir
}
}
testCjs {
typings {
srcDir main.output.typingsDir
srcDir cjs.output.typingsDir
srcDir test.output.typingsDir
}
cin
migrating tests to the new project structure
r89 }
cin
working on support commonjs modules format
r59 }
cin
Move to org.implab.gradle-typescript
r87 typescript {
compilerOptions {
cin
migrating tests to the new project structure
r89 lib = [target, "dom", "scripthost"]
if (jstarget in ["es5", "es3"])
cin
migrating to new project plugin 1.0.1-rc1...
r90 lib += ["es2015.promise", "es2015.symbol", "es2015.iterable"]
cin
migrating tests to the new project structure
r89
cin
Move to org.implab.gradle-typescript
r87 target = jstarget
module = jsmodule
types = []
cin
migrating tests to the new project structure
r89 declaration = true
listFiles = true
cin
working on support commonjs modules format
r59 }
cin
Amd tests are passed
r91 tscCmd = "$projectDir/node_modules/.bin/tsc"
tsLintCmd = "$projectDir/node_modules/.bin/tslint"
esLintCmd = "$projectDir/node_modules/.bin/eslint"
cin
Move to org.implab.gradle-typescript
r87 npmCmd = "npm"
cin
working on support commonjs modules format
r59 }
cin
working on multiplaftorm support (node, browser)
r47
task printVersion {
cin
working on multi-platform support
r48 doLast {
cin
added markRelease task
r68 println "version: $version";
cin
migrating tests to the new project structure
r89 println "tagDistance: $tagDistance";
cin
added markRelease task
r68 println "packageName: $packageName";
cin
migrating to new project plugin 1.0.1-rc1
r88 println "target: $jstarget";
cin
added markRelease task
r68 println "module: $jsmodule";
cin
working on multi-platform support
r48 }
cin
working on multiplaftorm support (node, browser)
r47 }
cin
improved core/build.gradle script
r4 task clean {
doLast {
delete buildDir
cin
working on support commonjs modules format
r59 }
}
cin
migrating to new project plugin 1.0.1-rc1
r88 npmPackMeta {
meta {
cin
migrating tests to the new project structure
r89 name = packageName
cin
Added support for commonjs module format, all tests are pass.
r60 }
}
cin
migrating to new project plugin 1.0.1-rc1...
r90
compileTsAmd {
dependsOn sources.main.output
}
configureTsAmd {
compilerOptions {
types += [ "requirejs", "dojo-typings" ]
}
}
cin
Amd tests are passed
r91 test {
workingDir layout.buildDirectory.dir("test");
commandLine "node", "tests/index.js"
}
cin
migrating to new project plugin 1.0.1-rc1...
r90 assembleTest {
dependsOn sources.main.output
dependsOn sources.amd.output
dependsOn sources.testAmd.output
from(sources.main.output.compiledDir)
from(sources.amd.output.compiledDir)
from(sources.testAmd.output.compiledDir)
}