Skip to content

Commit

Permalink
New Crowdin updates (#654)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
henry-hub authored Sep 17, 2023
1 parent 454054e commit 0614fd3
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 20 deletions.
27 changes: 14 additions & 13 deletions en/list/iHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
131 changes: 131 additions & 0 deletions en/list/iHubNode.md
Original file line number Diff line number Diff line change
@@ -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)
83 changes: 83 additions & 0 deletions en/list/iHubProfiles.md
Original file line number Diff line number Diff line change
@@ -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)
16 changes: 10 additions & 6 deletions en/list/iHubSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
3 changes: 2 additions & 1 deletion en/list/iHubVerification.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

:::info plugin description
`ihub-verification`plugin configuration code static check and test case coverage etc.
:::
:::
:::
:::
:::
:::
Expand Down

0 comments on commit 0614fd3

Please sign in to comment.