From 0614fd3f7b70032e0815c6472d341dfcb3dee1bf Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 17 Sep 2023 14:45:26 +0800 Subject: [PATCH] New Crowdin updates (#654) * New translations iHubVerification.md (en) * New translations multiAdvanced.md (en) * New translations iHub.md (en) * New translations iHubSettings.md (en) * New translations gradle-wrapper.properties.md (en) * New translations setting.gradle.md (en) * New translations iHubNode.md (en) * New translations iHubProfiles.md (en) * New translations iHub.md (en) * New translations iHubSettings.md (en) * New translations iHubNode.md (en) * New translations iHubProfiles.md (en) --- en/list/iHub.md | 27 ++++---- en/list/iHubNode.md | 131 ++++++++++++++++++++++++++++++++++++ en/list/iHubProfiles.md | 83 +++++++++++++++++++++++ en/list/iHubSettings.md | 16 +++-- en/list/iHubVerification.md | 3 +- 5 files changed, 240 insertions(+), 20 deletions(-) create mode 100644 en/list/iHubNode.md create mode 100644 en/list/iHubProfiles.md diff --git a/en/list/iHub.md b/en/list/iHub.md index 36e28c64..aefc2b73 100644 --- a/en/list/iHub.md +++ b/en/list/iHub.md @@ -20,19 +20,20 @@ ## Extended Properties -| Extension | Description | Default | Ext[^Ext] | Prj[^Prj] | Sys[^Sys] | Env[^Env] | -| --------------------------- | ------------------------------------------------------------------ | ------- | --------- | --------- | --------- | --------- | -| `mavenLocalEnabled` | Enable local repository | `false` | ✔ | ✔ | ❌ | ❌ | -| `mavenAliYunEnabled` | Enable Aliyun Proxy Repository | `false` | ✔ | ✔ | ✔ | ✔ | -| `mavenPrivateEnabled` | Enable private repository (Component Publish Repository) | `true` | ✔ | ✔ | ✔ | ✔ | -| `releaseRepoUrl` | Official Repository | ❌ | ✔ | ✔ | ❌ | ❌ | -| `snapshotRepoUrl` | Snapshot Repository | ❌ | ✔ | ✔ | ❌ | ❌ | -| `repoAllowInsecureProtocol` | Whether to allow the insecure protocol (whether http) | `false` | ✔ | ✔ | ❌ | ❌ | -| `repoIncludeGroup` | Repository contains groups (used to limit repository range) | ❌ | ✔ | ✔ | ❌ | ❌ | -| `repoIncludeGroupRegex` | Repository contains group regular (used to limit repository range) | `.*` | ✔ | ✔ | ❌ | ❌ | -| `repoUsername` | Repository Username | ❌ | ✔ | ✔ | ✔ | ✔ | -| `repoPassword` | Repository Password | ❌ | ✔ | ✔ | ✔ | ✔ | -| `customizeRepoUrl` | Custom Repository | ❌ | ✔ | ✔ | ❌ | ❌ | +| Extension | Description | Default | Ext[^Ext] | Prj[^Prj] | Sys[^Sys] | Env[^Env] | +| --------------------------- | ------------------------------------------------------------------------------------------------- | ------- | --------- | --------- | --------- | --------- | +| `mavenLocalEnabled` | Enable local repository | `false` | ✔ | ✔ | ❌ | ❌ | +| `mavenAliYunEnabled` | Enable Aliyun Proxy Repository | `false` | ✔ | ✔ | ✔ | ✔ | +| `mavenPrivateEnabled` | Enable private repository (Component Publish Repository) | `true` | ✔ | ✔ | ✔ | ✔ | +| `releaseRepoUrl` | Official Repository | ❌ | ✔ | ✔ | ❌ | ❌ | +| `snapshotRepoUrl` | Snapshot Repository | ❌ | ✔ | ✔ | ❌ | ❌ | +| `repoAllowInsecureProtocol` | Whether to allow the insecure protocol (whether http) | `false` | ✔ | ✔ | ❌ | ❌ | +| `repoIncludeGroup` | Repository contains groups (used to limit repository range) | ❌ | ✔ | ✔ | ❌ | ❌ | +| `repoIncludeGroupRegex` | Repository contains group regular (used to limit repository range) | `.*` | ✔ | ✔ | ❌ | ❌ | +| `repoUsername` | Repository Username | ❌ | ✔ | ✔ | ✔ | ✔ | +| `repoPassword` | Repository Password | ❌ | ✔ | ✔ | ✔ | ✔ | +| `customizeRepoUrl` | Custom Repository | ❌ | ✔ | ✔ | ❌ | ❌ | +| `profile` | Configuration files, multiple configurations are separated by commas, priority from right to left | ❌ | ❌ | ✔ | ✔ | ❌ | ## Plugin Installation diff --git a/en/list/iHubNode.md b/en/list/iHubNode.md new file mode 100644 index 00000000..4e898f0f --- /dev/null +++ b/en/list/iHubNode.md @@ -0,0 +1,131 @@ +# ihub-node + +::: info plugin information +`ihub-node`plugin is a stand-alone plugin based on [com.github.node-gradle.node](https://plugins.gradle.org/plugin/com.github.node-gradle.node) plugin supports building node.js projects, and extension support`cnpm` +::: + +| Plugin Id | Plugin Name | Plugin Type | Extension Name | Plugin dependencies | +| --------------------------- | ----------------- | ------------------- | -------------- | -------------------------------------------------------------------------------------------- | +| `pub.ihub.plugin.ihub-node` | `GitHooks Plugin` | `Project`[^Project] | `iHubNode` | [com.github.node-gradle.node](https://plugins.gradle.org/plugin/com.github.node-gradle.node) | + +## Extended Properties + +| Extension | Description | Default | Ext[^Ext] | Prj[^Prj] | Sys[^Sys] | Env[^Env] | +| ----------------------- | --------------------------------------------------------- | -------- | --------- | --------- | --------- | --------- | +| `version` | Node.js Version | `latest` | ✔ | ✔ | ✔ | ❌ | +| `npmVersion` | npm version. If not specified, use Node.js bound version | `latest` | ✔ | ✔ | ✔ | ❌ | +| `pnpmVersion` | pnpm version, latest version if not specified | `latest` | ✔ | ✔ | ✔ | ❌ | +| `yarnVersion` | pnpm version, latest version if not specified | `latest` | ✔ | ✔ | ✔ | ❌ | +| `cnpmVersion` | pnpm version, latest version if not specified | `latest` | ✔ | ✔ | ✔ | ❌ | +| `distBaseUrl` | Node.js Download Address | ❌ | ✔ | ✔ | ✔ | ❌ | +| `allowInsecureProtocol` | Whether unsafe protocols are allowed | `false` | ✔ | ✔ | ✔ | ❌ | +| `download` | Whether to download and install specific Node.js versions | `false` | ✔ | ✔ | ✔ | ❌ | +| `workDir` | Node.js Installation Directory | ❌ | ✔ | ✔ | ✔ | ✔ | +| `npmWorkDir` | NPM installation directory | ❌ | ✔ | ✔ | ✔ | ✔ | +| `pnpmWorkDir` | NPM installation directory | ❌ | ✔ | ✔ | ✔ | ✔ | +| `yarnWorkDir` | Yarn Installation Directory | ❌ | ✔ | ✔ | ✔ | ✔ | +| `cnpmWorkDir` | cNpm installation directory | ❌ | ✔ | ✔ | ✔ | ✔ | + +## Plugin Installation + +::: code-tabs#build + +@tab Kotlin + +```kotlin +plugins { + id("pub.ihub.plugin.ihub-node") +} +``` + +@tab Groovy + +```groovy +plugins { + id 'pub.ihub.plugin.ihub-node' +} +``` + +::: + +## Example plugin configuration usage + +::: code-tabs#build + +@tab Kotlin + +```kotlin +iHubNode { + version.set("18.16.0") +} +``` + +@tab Groovy + +```groovy +iHubNode { + version = '18.16.0' +} +``` + +::: + +## Plugin Extension Task + +### cnpm + +> Task Extension Configuration + +::: code-tabs#build + +@tab Kotlin + +```kotlin +import pub.ihub.plugin.node.cnpm.task.CnpmTask + +tasks.create("cnpm_run_dev", CnpmTask::class) { + args.set(listOf("run", "dev")) +} +``` + +@tab Groovy + +```groovy +task cnpm_run_dev(type: pub.ihub.plugin.node.cnpm.task.CnpmTask) { + args = ['run','dev'] +} +``` + +::: + +> Task command + +```cmd +cnpm run dev +``` + +### cnpmSetup + +> Task command + +```cmd +npm install --global --no-save --prefix cnpm --registry=https://registry.npm.taobao.org +``` + +### cnpmInstall + +> Task command + +```cmd +cnpm install +``` + +### cnpmSync + +> Task command + +```cmd +cnpm sync cnpmcore +``` + +@include(../snippet/footnote.md) \ No newline at end of file diff --git a/en/list/iHubProfiles.md b/en/list/iHubProfiles.md new file mode 100644 index 00000000..3ef2737a --- /dev/null +++ b/en/list/iHubProfiles.md @@ -0,0 +1,83 @@ +# ihub-profiles + +::: info plugin description +`ihub-profiles`Gradle version Maven POM Profiles +::: + +| Info | Description | +| ------------------- | ------------------------------- | +| Plugin Id | `pub.ihub.plugin.ihub-profiles` | +| Plugin Name | `Profile Plugin` | +| Plugin Type | `Project`[^Project] | +| Extension Name | `ihubProfiles` | +| Plugin dependencies | [ihub](iHub) | + +::: tip plugin feature +based on`iHub.profile`attributes, different`profile`extension configuration +::: + +## Plugin Installation + +::: code-tabs#build + +@tab Kotlin + +```kotlin +plugins { + id("pub.ihub.plugin.ihub-profiles") +} +``` + +@tab Groovy + +```groovy +plugins { + id 'pub.ihub.plugin.ihub-profiles' +} +``` + +::: + +::: note +If the base plugin`ihub`is installed, there is no need to install`ihub-profiles`plugin,`ihub`plugin is already integrated with`ihu-profiles`plugin. +::: + +## Configuration Example + +::: code-tabs#build + +@tab Kotlin + +```kotlin +ihubProfiles { + profile("dev") { + println("dev") + } + profile("test") { + println("test") + } + profile("prod") { + println("prod") + } +} +``` + +@tab Groovy + +```groovy +ihubProfiles { + profile('dev') { + println 'dev' + } + profile('test') { + println 'test' + } + profile('prod') { + println 'prod' + } +} +``` + +::: + +@include(../snippet/footnote.md) \ No newline at end of file diff --git a/en/list/iHubSettings.md b/en/list/iHubSettings.md index bc17097e..f1679978 100644 --- a/en/list/iHubSettings.md +++ b/en/list/iHubSettings.md @@ -24,12 +24,14 @@ ### `gradle.properties`Configure support properties -| Property | Description | -| -------------------------- | -------------------------------------------------------------------------------------------------------- | -| `name` | Configure primary project name | -| `iHubSettings.includeDirs` | Include project paths, multiple directories ", " split | -| `iHubSettings.skippedDirs` | Exclude project paths, multiple directories ", " split | -| `iHubSettings.includeBom` | Used to configure the bom component, including all subprojects with[ihub-publish](iHubPublish)components | +| Property | Description | +| ---------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `name` | Configure primary project name | +| `iHubSettings.includeDirs` | Include project paths, multiple directories ", " split | +| `iHubSettings.skippedDirs` | Exclude project paths, multiple directories ", " split | +| `iHubSettings.includeBom` | Used to configure the bom component, including all subprojects with[ihub-publish](iHubPublish)components | +| `iHubSettings.includeLibs` | Publish catalog component switching, | +| `iHubSettings.includeDependencies` | Used to configure dependencies' components, based on catalog component configuration | > Configure the following: @@ -191,6 +193,8 @@ dependencyResolutionManagement { } ``` +- Private Snapshot repository - `gradle/libs.versions.toml`for standard configurations, gradle will be automatically imported, and this plugin will automatically configure other`.versions.toml`files such as:`myLibs.versions.toml`, generally using standard configuration sufficient to configure +- Private Release Repository @include(../snippet/footnote.md) diff --git a/en/list/iHubVerification.md b/en/list/iHubVerification.md index 6bd74147..2251a4f3 100644 --- a/en/list/iHubVerification.md +++ b/en/list/iHubVerification.md @@ -2,7 +2,8 @@ :::info plugin description `ihub-verification`plugin configuration code static check and test case coverage etc. -::: +::: +::: ::: ::: :::