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.
|
||||
|
||||
## 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
|
||||
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 {
|
||||
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 {
|
||||
|
@ -8,9 +8,9 @@ plugins {
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
group = "com.thebrokenrail"
|
||||
base.archivesBaseName = "scriptcraft"
|
||||
version = "1.0.0-SNAPSHOT"
|
||||
group = "com.thebrokenrail.scriptcraft"
|
||||
base.archivesBaseName = "plugin"
|
||||
version = "1.0.0"
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
|
@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id("fabric-loom") version "0.2.7-SNAPSHOT"
|
||||
id("jni")
|
||||
id("com.thebrokenrail.scriptcraft") version "1.0.0-SNAPSHOT"
|
||||
id("com.thebrokenrail.scriptcraft.plugin") version "1.0.0-SNAPSHOT"
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user