You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2021. It is now read-only.
Create a `package.json` file next to the `build.gradle` file and declare the TypeScript compiler version to use
78
+
as follows:
79
+
80
+
{ "dependencies": { "typescript": "1.8.7" } }
81
+
82
+
83
+
## Usage with local Node and TypeScript installation
84
+
85
+
This is not the recommended way of using the plugin. You should prefer to use it with the Node plugin.
86
+
But if you have good reasons to do so, here is how...
13
87
14
88
You need to have installed node.js and installed the typescript node module:
15
89
@@ -18,14 +92,16 @@ You need to have installed node.js and installed the typescript node module:
18
92
Alternatively on windows you can install the Typescript SDK and configure the `compilerExecutable` config option to `tsc` - see *Available configuration options*.
19
93
20
94
21
-
#Quickstart
95
+
### Add plugin dependency
22
96
23
-
This will guide you through the steps needed to set up typescript-gradle-plugin for a TypeScript application project using Maven/Gradle standard layout.
97
+
If you are using Gradle 2.1 or later, define the plugin dependency as follows:
24
98
99
+
plugins {
100
+
id "de.richsource.gradle.plugins.typescript" version "1.8.0"
101
+
}
25
102
26
-
## Plugin dependency
27
103
28
-
Build script snippet for use in all Gradle versions:
104
+
If you are using Gradle 2.0 or earlier, define the plugin dependency as follows:
29
105
30
106
buildscript {
31
107
repositories {
@@ -39,12 +115,6 @@ Build script snippet for use in all Gradle versions:
0 commit comments