##// END OF EJS Templates
wip migrating on new typescript build plugin
wip migrating on new typescript build plugin

File last commit:

r174:b00d3153045c default
r174:b00d3153045c default
Show More
build.gradle
110 lines | 2.5 KiB | text/x-groovy | GroovyLexer
cin
Move to org.implab.gradle-typescript
r87 plugins {
cin
wip migrating on new typescript build plugin
r174 id "org.implab.gradle-typescript"
id "org.implab.gradle-npm-package"
id "ivy-publish"
cin
working on publications
r95 }
cin
wip migrating on new typescript build plugin
r174 typescript {
useTsc npm.bin("tsc")
cin
migrating to new project plugin 1.0.1-rc1...
r90
cin
wip migrating on new typescript build plugin
r174 compilerOptions {
incremental = true
cin
migrating tests to the new project structure
r89 }
cin
working on support commonjs modules format
r59 }
cin
wip migrating on new typescript build plugin
r174 def typingsFromMain = {
sets {
named("compileOnlyTypings") {
srcDir main.output("typings")
cin
added properties to the build project...
r99 }
}
cin
working on build.gradle
r92 }
cin
wip migrating on new typescript build plugin
r174 variants {
configureEach { variant ->
def sourceSetLocation = { setName, self ->
self.sourceSetDir = layout.projectDirectory.dir("src/${setName}")
self.outputsDir = layout.buildDirectory.dir("${variant.name}/${setName}")
}
cin
working on multiplaftorm support (node, browser)
r47
cin
wip migrating on new typescript build plugin
r174 def main = sources.register("${variant.name}Main", sourceSetLocation.curry("main"))
def test = sources.register("${variant.name}Test", sourceSetLocation.curry("test"))
cin
migrating to new project plugin 1.0.1-rc1...
r90
cin
wip migrating on new typescript build plugin
r174 sourceSets {
add(main) {
role "main"
}
add(test) {
role "test"
}
}
cin
working build and test for browser and node targets
r93 }
cin
wip migrating on new typescript build plugin
r174 register("browser") {
def srcAmd = sources.register("amd", typingsFromMain)
def srcTestAmd = sources.register("testAmd", typingsFromMain)
// advice to all TypescriptCompile tasks
typescriptCompile {
baseTsConfig = file("src/tsconfig.browser.json")
}
cin
migrating to new project plugin 1.0.1-rc1...
r90
cin
wip migrating on new typescript build plugin
r174 // creates npmPackBrowser, npmPublishBrowser
npmPackage {
usePackageJson()
metadata {
name = "@implab/core-amd"
}
content {
from sourceSets.byRoles("main").allOutputs()
}
}
cin
migrating to new project plugin 1.0.1-rc1...
r90
cin
wip migrating on new typescript build plugin
r174 sourceSets {
add(srcAmd) {
role "main"
}
add(srcTestAmd) {
role "test"
}
}
}
register("node") {
def srcCjs = sources.register("cjs", typingsFromMain)
def srcTestCjs = sources.register("testCjs", typingsFromMain)
cin
Amd tests are passed
r91
cin
wip migrating on new typescript build plugin
r174 compileTasks {
baseTsConfig = file("src/tsconfig.node.json")
}
npmPackage {
name = "@implab/core"
}
sourceSets {
add srcAmd
add srcTestAmd
}
cin
Working on build, vs code tasks
r98 }
cin
wip migrating on new typescript build plugin
r174 npmPackage {
usePackageJson()
metadata {
name = "@implab/core"
version = project.provider { project.version.toString() }
cin
working on build.gradle
r92 }
cin
added tasks to pack typings and sources to npm packages
r96 }
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 }