From f1444c497a5774061225e154555615ec70d6858b Mon Sep 17 00:00:00 2001 From: KillerBossOriginal Date: Thu, 4 Jul 2024 22:03:54 +0200 Subject: [PATCH] . --- .idea/.name | 1 + .idea/artifacts/permission_checker_js_2_0.xml | 8 ++++++++ .idea/artifacts/permission_checker_jvm_2_0.xml | 8 ++++++++ build.gradle.kts | 16 ++++++++++++++++ settings.gradle.kts | 2 +- 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .idea/.name create mode 100644 .idea/artifacts/permission_checker_js_2_0.xml create mode 100644 .idea/artifacts/permission_checker_jvm_2_0.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..55e19a4 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +permission-checker \ No newline at end of file diff --git a/.idea/artifacts/permission_checker_js_2_0.xml b/.idea/artifacts/permission_checker_js_2_0.xml new file mode 100644 index 0000000..8e2b75e --- /dev/null +++ b/.idea/artifacts/permission_checker_js_2_0.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/build/libs + + + + + \ No newline at end of file diff --git a/.idea/artifacts/permission_checker_jvm_2_0.xml b/.idea/artifacts/permission_checker_jvm_2_0.xml new file mode 100644 index 0000000..33bc962 --- /dev/null +++ b/.idea/artifacts/permission_checker_jvm_2_0.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/build/libs + + + + + \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 7f9a4cf..0bbb090 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -69,4 +69,20 @@ publishing { } } } +} + +tasks.register("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") + } + } } \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index de26cd9..a28e6f3 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,5 +1,5 @@ plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" } -rootProject.name = "Permission-Checker" +rootProject.name = "permission-checker"