This commit is contained in:
KillerBossOriginal 2024-07-04 22:03:54 +02:00
parent b0ed79fae1
commit f1444c497a
5 changed files with 34 additions and 1 deletions

1
.idea/.name Normal file
View file

@ -0,0 +1 @@
permission-checker

View file

@ -0,0 +1,8 @@
<component name="ArtifactManager">
<artifact type="jar" name="permission-checker-js-2.0">
<output-path>$PROJECT_DIR$/build/libs</output-path>
<root id="archive" name="permission-checker-js-2.0.jar">
<element id="module-output" name="permission-checker.jsMain" />
</root>
</artifact>
</component>

View file

@ -0,0 +1,8 @@
<component name="ArtifactManager">
<artifact type="jar" name="permission-checker-jvm-2.0">
<output-path>$PROJECT_DIR$/build/libs</output-path>
<root id="archive" name="permission-checker-jvm-2.0.jar">
<element id="module-output" name="permission-checker.jvmMain" />
</root>
</artifact>
</component>

View file

@ -69,4 +69,20 @@ publishing {
} }
} }
} }
}
tasks.register<Copy>("prepareNpmPublication") {
dependsOn("jsProductionExecutableCompileSync", "jsPackageJson")
from("build/js/packages/${project.name}", "README.md")
into("build/npm")
}
tasks.register("publishToNpm") {
dependsOn("prepareNpmPublication")
doLast {
exec {
workingDir("build/npm")
commandLine("npm", "publish")
}
}
} }

View file

@ -1,5 +1,5 @@
plugins { plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
} }
rootProject.name = "Permission-Checker" rootProject.name = "permission-checker"