##// END OF EJS Templates
migrating tests to the new project structure
migrating tests to the new project structure

File last commit:

r89:441fae622bca ts-plugin
r89:441fae622bca ts-plugin
Show More
build.gradle
110 lines | 2.4 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
working on support commonjs modules format
r59
cin
migrating tests to the new project structure
r89 }
cjs {
}
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"])
lib += ["es2015.promise"]
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
Move to org.implab.gradle-typescript
r87 tsLintCmd = "tslint"
esLintCmd = "eslint"
npmCmd = "npm"
cin
working on support commonjs modules format
r59 }
cin
working on multiplaftorm support (node, browser)
r47
cin
migrating tests to the new project structure
r89 configureTsMain {
compilerOptions {
if (jstarget in ["es5", "es3"])
lib += ["es2015.symbol", "es2015.iterable"]
}
}
configureTsTest {
compilerOptions {
types += [ "node" ]
}
}
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 "bundle: ${npmPack.outputs.files.join(',')}";
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 }
}