##// END OF EJS Templates
Working on build, vs code tasks
Working on build, vs code tasks

File last commit:

r98:2e1aa35d6371 ts-plugin
r98:2e1aa35d6371 ts-plugin
Show More
build.gradle
259 lines | 5.2 KiB | text/x-groovy | GroovyLexer
cin
Move to org.implab.gradle-typescript
r87 plugins {
cin
working build and test for browser and node targets
r93 id "org.implab.gradle-typescript" version "1.0.1-rc3"
cin
build.gradle cleanup and refactoring
r97 id "org.implab.gradle-hg"
cin
working on publications
r95 id "ivy-publish"
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
working build and test for browser and node targets
r93 ext {
packageName = "@$npmScope/$name"
cin
added optional lint parameter, -Plint=true to enable all lint tasks
r94 lint = project.hasProperty('lint') ? lint : false
cin
working build and test for browser and node targets
r93 }
cin
working on publications
r95 configurations {
}
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 {
types = []
cin
migrating tests to the new project structure
r89 declaration = true
cin
added tasks to pack typings and sources to npm packages
r96 sourceMap = true
cin
Working on build, vs code tasks
r98 sourceRoot = "_src"
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
cin
added optional lint parameter, -Plint=true to enable all lint tasks
r94 tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
dependsOn "prepare"
}
tasks.matching{ it.name =~ /^lint/ }.configureEach {
onlyIf { lint }
}
cin
working on build.gradle
r92 task prepare {
}
cin
working on multiplaftorm support (node, browser)
r47 task printVersion {
cin
working on build.gradle
r92 dependsOn prepare
cin
working on multi-platform support
r48 doLast {
cin
working on build.gradle
r92 println "version: ${-> version}";
println "packageName: ${-> packageName}";
println "target: ${-> typescript.compilerOptions.target}";
println "module: ${-> typescript.compilerOptions.module}";
cin
working on multi-platform support
r48 }
cin
working on multiplaftorm support (node, browser)
r47 }
cin
improved core/build.gradle script
r4 task clean {
cin
added optional lint parameter, -Plint=true to enable all lint tasks
r94 prepare.mustRunAfter it
cin
working on publications
r95
cin
improved core/build.gradle script
r4 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
cin
working on build.gradle
r92 configureTsCjs {
cin
migrating to new project plugin 1.0.1-rc1...
r90 dependsOn sources.main.output
cin
working build and test for browser and node targets
r93 compilerOptions {
types += [ "node" ]
}
cin
migrating to new project plugin 1.0.1-rc1...
r90 }
configureTsAmd {
cin
working on build.gradle
r92 dependsOn sources.main.output
cin
migrating to new project plugin 1.0.1-rc1...
r90 compilerOptions {
types += [ "requirejs", "dojo-typings" ]
}
}
cin
Amd tests are passed
r91 test {
workingDir layout.buildDirectory.dir("test");
commandLine "node", "tests/index.js"
}
cin
build.gradle cleanup and refactoring
r97 assemble {
cin
Working on build, vs code tasks
r98 mustRunAfter sources.amd.output,
sources.cjs.output
cin
build.gradle cleanup and refactoring
r97 from sources.amd.output.compiledDir
from sources.cjs.output.compiledDir
cin
working build and test for browser and node targets
r93 }
cin
build.gradle cleanup and refactoring
r97 assembleTest {
cin
Working on build, vs code tasks
r98 mustRunAfter sources.amd.output,
sources.cjs.output,
sources.testAmd.output,
sources.testCjs.output
cin
build.gradle cleanup and refactoring
r97 from sources.amd.output.compiledDir
from sources.cjs.output.compiledDir
from sources.testAmd.output.compiledDir
from sources.testCjs.output.compiledDir
cin
working on build.gradle
r92 }
cin
Working on build, vs code tasks
r98 task prepareLocalDebug {
prepare.mustRunAfter it
doLast {
tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
compilerOptions {
sourceRoot = "file://" + it.rootDir
}
}
}
}
cin
build.gradle cleanup and refactoring
r97 task prepareNode {
cin
working build and test for browser and node targets
r93 prepare.mustRunAfter it
cin
working on build.gradle
r92
doLast {
typescript {
compilerOptions {
cin
build.gradle cleanup and refactoring
r97 module = "commonjs"
cin
working build and test for browser and node targets
r93 target = "es2017"
lib = ["es2017", "dom", "scripthost"]
cin
working on build.gradle
r92 }
}
}
}
task prepareBrowser {
cin
working build and test for browser and node targets
r93 prepare.mustRunAfter it
cin
working on build.gradle
r92 doLast {
cin
working build and test for browser and node targets
r93 packageName = "@$npmScope/$project.name-amd"
cin
working on build.gradle
r92 typescript {
compilerOptions {
cin
working build and test for browser and node targets
r93 module = "amd"
cin
build.gradle cleanup and refactoring
r97 target = "es5"
lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"]
cin
working on build.gradle
r92 }
}
}
}
cin
added tasks to pack typings and sources to npm packages
r96 task npmPackTypingsAmd(type: Copy) {
dependsOn sources.main.output
dependsOn sources.amd.output
npmPack.mustRunAfter it
from sources.main.output.typingsDir
from sources.amd.output.typingsDir
into "${->buildDir}/npm/pack"
}
task npmPackSourcesAmd(type: Copy) {
from sources.main.ts
from sources.amd.ts
npmPack.mustRunAfter it
cin
Working on build, vs code tasks
r98 into "${->buildDir}/npm/pack/_src"
cin
added tasks to pack typings and sources to npm packages
r96 }
cin
working build and test for browser and node targets
r93 task assembleBrowser {
cin
build.gradle cleanup and refactoring
r97 dependsOn prepareBrowser, assemble, sources.amd.output
cin
working build and test for browser and node targets
r93 }
task assembleNode {
cin
build.gradle cleanup and refactoring
r97 dependsOn prepareNode, assemble, sources.cjs.output
cin
working build and test for browser and node targets
r93 }
cin
Working on build, vs code tasks
r98 task assembleTestBrowser {
dependsOn prepareBrowser, prepareLocalDebug, assembleTest, sources.amd.output, sources.testAmd.output
}
cin
working build and test for browser and node targets
r93 task testBrowser {
cin
build.gradle cleanup and refactoring
r97 dependsOn prepareBrowser, test, sources.amd.output, sources.testAmd.output
cin
working build and test for browser and node targets
r93 }
task testNode {
cin
build.gradle cleanup and refactoring
r97 dependsOn prepareNode, test, sources.cjs.output, sources.testCjs.output
cin
working on publications
r95 }
cin
added tasks to pack typings and sources to npm packages
r96 task npmPackBrowser {
dependsOn assembleBrowser, npmPack, npmPackSourcesAmd, npmPackTypingsAmd
}
cin
working on publications
r95 task packJsTar(type: Tar) {
dependsOn assemble;
archiveBaseName = provider { packageName }
destinationDirectory = buildDir
archiveClassifier = provider { typescript.compilerOptions.module }
compression = Compression.GZIP
from(assemble.outputs)
doLast {
println archiveName;
}
}
cin
added tasks to pack typings and sources to npm packages
r96 task packTypingsTar(type: Tar) {
}
cin
working on publications
r95 publishing {
publications {
local(IvyPublication) {
artifact(packJsTar) {
type = "js"
}
}
}
repositories {
ivy {
url "ivy-repo"
}
}
cin
migrating to new project plugin 1.0.1-rc1...
r90 }