##// END OF EJS Templates
bump dependencies, bump ts to 5.2...
cin -
r155:6acbe6efbe20 v1.10.2 default
parent child
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -1,104 +1,104
1 plugins {
1 plugins {
2 id "org.implab.gradle-typescript" version "1.3.4"
2 id "org.implab.gradle-typescript" version "1.3.4"
3 id "ivy-publish"
3 id "ivy-publish"
4 }
4 }
5
5
6 configurations {
6 configurations {
7 "default" {
7 "default" {
8 canBeConsumed = true
8 canBeConsumed = true
9 canBeResolved = false
9 canBeResolved = false
10 }
10 }
11 }
11 }
12
12
13 typescript {
13 typescript {
14 compilerOptions {
14 compilerOptions {
15 lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"]
15 lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"]
16 // listFiles = true
16 // listFiles = true
17 declaration = true
17 declaration = true
18 strict = true
18 strict = true
19 types = []
19 types = []
20 module = "amd"
20 module = "amd"
21 it.target = "es5"
21 it.target = "es5"
22 experimentalDecorators = true
22 experimentalDecorators = true
23 noUnusedLocals = false
23 noUnusedLocals = false
24 jsx = "react"
24 jsx = "react"
25 jsxFactory = "createElement"
25 jsxFactory = "createElement"
26 moduleResolution = "node"
26 moduleResolution = "node"
27 // dojo-typings are sick
27 // dojo-typings are sick
28 skipLibCheck = true
28 skipLibCheck = true
29 // traceResolution = true
29 // traceResolution = true
30 // baseUrl = "./"
30 // baseUrl = "./"
31 // paths = [ "*": [ "$projectDir/src/typings/*" ] ]
31 // paths = [ "*": [ "$projectDir/src/typings/*" ] ]
32 // baseUrl = "$projectDir/src/typings"
32 // baseUrl = "$projectDir/src/typings"
33 // typeRoots = ["$projectDir/src/typings"]
33 // typeRoots = ["$projectDir/src/typings"]
34 }
34 }
35
35
36 tscCmd = "$projectDir/node_modules/.bin/tsc"
36 tscCmd = "$projectDir/node_modules/.bin/tsc"
37 tsLintCmd = "$projectDir/node_modules/.bin/tslint"
37 tsLintCmd = "$projectDir/node_modules/.bin/tslint"
38 esLintCmd = "$projectDir/node_modules/.bin/eslint"
38 esLintCmd = "$projectDir/node_modules/.bin/eslint"
39 }
39 }
40
40
41 configureTsMain {
41 configureTsMain {
42 sourceFiles {
42 sourceFiles {
43 from sources.main.typings
43 from sources.main.typings
44 }
44 }
45 compilerOptions {
45 compilerOptions {
46 // baseUrl = "$projectDir/src"
46 // baseUrl = "$projectDir/src"
47 /*paths = [
47 /*paths = [
48 "dojo/*" : [ "typings/dojo/*" ],
48 "dojo/*" : [ "typings/dojo/*" ],
49 "dijit/*" : [ "typings/dijit/*" ]
49 "dijit/*" : [ "typings/dijit/*" ]
50 ]*/
50 ]*/
51 types = ["requirejs", "@implab/dojo-typings", "@implab/dojo-typings/dojo/NodeList-fx"]
51 types = ["requirejs", "@implab/dojo-typings", "@implab/dojo-typings/dojo/NodeList-fx"]
52 }
52 }
53 }
53 }
54
54
55 configureTsTest {
55 configureTsTest {
56 compilerOptions {
56 compilerOptions {
57 typeRoots = []
57 //typeRoots = []
58 types = ["requirejs", sources.main.output.typingsDir.get().toString() ]
58 types = ["requirejs", sources.main.output.typingsDir.get().toString() ]
59 }
59 }
60 }
60 }
61
61
62 tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
62 tasks.matching{ it.name =~ /^configureTs/ }.configureEach {
63 compilerOptions {
63 compilerOptions {
64 if (symbols != 'none') {
64 if (symbols != 'none') {
65 sourceMap = true
65 sourceMap = true
66 switch(symbols) {
66 switch(symbols) {
67 case "local":
67 case "local":
68 sourceRoot = ( isWindows ? "file:///" : "file://" ) + it.rootDir
68 sourceRoot = ( isWindows ? "file:///" : "file://" ) + it.rootDir
69 break;
69 break;
70 }
70 }
71 }
71 }
72 }
72 }
73 }
73 }
74
74
75 npmPackMeta {
75 npmPackMeta {
76 meta {
76 meta {
77 name = "@$npmScope/$project.name"
77 name = "@$npmScope/$project.name"
78 }
78 }
79 }
79 }
80
80
81 task npmPackTypings(type: Copy) {
81 task npmPackTypings(type: Copy) {
82 dependsOn typings
82 dependsOn typings
83
83
84 npmPackContents.dependsOn it
84 npmPackContents.dependsOn it
85
85
86 from typescript.typingsDir
86 from typescript.typingsDir
87 into npm.packageDir
87 into npm.packageDir
88 }
88 }
89
89
90 task printVersion {
90 task printVersion {
91 doLast {
91 doLast {
92 println "packageName: ${npmPackMeta.metadata.get().name}";
92 println "packageName: ${npmPackMeta.metadata.get().name}";
93 println "version: $version";
93 println "version: $version";
94 println "target: $typescript.compilerOptions.target";
94 println "target: $typescript.compilerOptions.target";
95 println "module: $typescript.compilerOptions.module";
95 println "module: $typescript.compilerOptions.module";
96 println "symbols: $symbols";
96 println "symbols: $symbols";
97 }
97 }
98 }
98 }
99
99
100 artifacts {
100 artifacts {
101 "default" (npm.packageDir) {
101 "default" (npm.packageDir) {
102 builtBy npmAssemblePackage
102 builtBy npmAssemblePackage
103 }
103 }
104 } No newline at end of file
104 }
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from djx/src/main/ts/observable/interfaces.d.ts to djx/src/main/typings/observable/interfaces.d.ts
NO CONTENT: file renamed from djx/src/main/ts/observable/interfaces.d.ts to djx/src/main/typings/observable/interfaces.d.ts
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now