##// END OF EJS Templates
corrected tear down logic handling in observables. Added support for observable query results
corrected tear down logic handling in observables. Added support for observable query results

File last commit:

r110:1a190b3a757d v1.4.0 default
r110:1a190b3a757d v1.4.0 default
Show More
build.gradle
132 lines | 3.0 KiB | text/x-groovy | GroovyLexer
cin
Added playground project
r97 plugins {
id "org.implab.gradle-typescript" version "1.3.4"
id "ivy-publish"
}
cin
Testing nested watch, release candidate
r101 def container = "djx-playground"
cin
Added playground project
r97 configurations {
npmLocal
}
dependencies {
npmLocal project(":djx")
}
def bundleDir = fileTree(layout.buildDirectory.dir("bundle")) {
builtBy "bundle"
}
cin
Working sandbox
r99 typescript {
compilerOptions {
lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"]
// listFiles = true
strict = true
types = ["requirejs", "@implab/dojo-typings", "@implab/djx"]
module = "amd"
it.target = "es5"
experimentalDecorators = true
noUnusedLocals = false
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"
}
tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
compilerOptions {
if (symbols != 'none') {
sourceMap = true
switch(symbols) {
case "local":
sourceRoot = ( isWindows ? "file:///" : "file://" ) + it.rootDir
break;
}
}
}
}
cin
Added playground project
r97 npmInstall {
//npmInstall.dependsOn it
cin
Working sandbox
r99 dependsOn configurations.npmLocal
cin
Added playground project
r97
doFirst {
configurations.npmLocal.each { f ->
exec {
commandLine "npm", "install", f, "--save-dev"
}
}
}
}
cin
Working sandbox
r99 clean {
doFirst {
delete "$buildDir/bundle"
}
}
cin
Added playground project
r97
task processResourcesBundle(type: Copy) {
from "src/bundle"
into layout.buildDirectory.dir("bundle")
}
task copyModules(type: Copy) {
dependsOn npmInstall
into layout.buildDirectory.dir("bundle/js");
def pack = { String jsmod ->
into(jsmod) {
from npm.module(jsmod)
}
}
pack("@implab/djx")
cin
Working sandbox
r99 pack("@implab/core-amd")
cin
corrected tear down logic handling in observables. Added support for observable query results
r110 into("@js-joda/core") {
from(npm.module("@js-joda/core/dist"))
}
cin
Added playground project
r97 pack("dojo")
cin
Working sandbox
r99 pack("dijit")
cin
`Subscribable` is made compatible with rxjs, added map, filter and scan...
r102 into("rxjs") {
from(npm.module("rxjs/dist/bundles"))
}
cin
Working sandbox
r99 from npm.module("requirejs/require.js")
cin
Added playground project
r97 }
cin
disable pusblish for playground
r106 npmPublish {
enabled = false
}
cin
Added playground project
r97 task copyApp(type: Copy) {
dependsOn assemble
from typescript.assemblyDir
into layout.buildDirectory.dir("bundle/js/app")
}
task bundle {
dependsOn copyModules, processResourcesBundle, copyApp
cin
Testing nested watch, release candidate
r101 }
task up(type: Exec) {
dependsOn bundle
commandLine "podman", "run", "--rm", "-d",
"--name", container,
"-p", "2078:80",
"-v", "$buildDir/bundle:/srv/www/htdocs",
"registry.implab.org/implab/apache2:latest"
}
task stop(type: Exec) {
commandLine "podman", "stop", container
cin
Added playground project
r97 }