This commit is contained in:
parent
0cc1dfcea9
commit
2d54124e5e
@ -7,7 +7,7 @@ Inside the JAR, JS source files are in ```<JAR Root>/scriptcraft```, and inside
|
|||||||
An external libraries API can be accessed using an ```import``` statement.
|
An external libraries API can be accessed using an ```import``` statement.
|
||||||
|
|
||||||
## TypeScript
|
## TypeScript
|
||||||
TypeScript-based projects use thw ```com.thebrokenrail.scriptcraft``` Gradle plugin, this plugin will handle installing TypeScript and download any API type declarations. The TypeScript root using this Gradle plugin is at ```src/main/ts```.
|
TypeScript-based projects use thw ```com.thebrokenrail.scriptcraft.plugin``` Gradle plugin, this plugin will handle installing TypeScript and download any API type declarations. The TypeScript root using this Gradle plugin is at ```src/main/ts```.
|
||||||
|
|
||||||
### External Libraries
|
### External Libraries
|
||||||
To access an external libraries' API in addition to an ```import``` statement, the TypeScript compiler must have access to the external libraries' type declarations. The ScriptCraft Gradle plugin generates and downloads these using JAR files called API JARs.
|
To access an external libraries' API in addition to an ```import``` statement, the TypeScript compiler must have access to the external libraries' type declarations. The ScriptCraft Gradle plugin generates and downloads these using JAR files called API JARs.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("fabric-loom") version "0.2.7-SNAPSHOT"
|
id("fabric-loom") version "0.2.7-SNAPSHOT"
|
||||||
id("com.thebrokenrail.scriptcraft") version "1.0.0-SNAPSHOT"
|
id("com.thebrokenrail.scriptcraft.plugin") version "1.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
@ -8,9 +8,9 @@ plugins {
|
|||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.thebrokenrail"
|
group = "com.thebrokenrail.scriptcraft"
|
||||||
base.archivesBaseName = "scriptcraft"
|
base.archivesBaseName = "plugin"
|
||||||
version = "1.0.0-SNAPSHOT"
|
version = "1.0.0"
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
plugins {
|
plugins {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("fabric-loom") version "0.2.7-SNAPSHOT"
|
id("fabric-loom") version "0.2.7-SNAPSHOT"
|
||||||
id("jni")
|
id("jni")
|
||||||
id("com.thebrokenrail.scriptcraft") version "1.0.0-SNAPSHOT"
|
id("com.thebrokenrail.scriptcraft.plugin") version "1.0.0-SNAPSHOT"
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user