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