add dependency levels to content-packs.md
This commit is contained in:
parent
9b53def82a
commit
109cfbfceb
@ -22,6 +22,14 @@ Content-pack folder must contain file **package.json** with following contents:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Dependency levels are indicated by prefixes in the name:
|
||||||
|
- '!' - required dependency
|
||||||
|
- '?' - optional dependency
|
||||||
|
- '~' - weak dependency
|
||||||
|
If prefix is not specified, '!' level will be used.
|
||||||
|
|
||||||
|
Example: '~randutil' - weak dependency 'randutil'.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
@ -22,6 +22,14 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Уровни зависимостей указываются с помощью префиксов в имени:
|
||||||
|
- '!' - обязательная зависимость
|
||||||
|
- '?' - опциональная зависимость
|
||||||
|
- '~' - слабая зависимость
|
||||||
|
Отсутствие префикса интерпретируется как '!'.
|
||||||
|
|
||||||
|
Пример: '~randutil' - слабая зависимость 'randutil'.
|
||||||
|
|
||||||
Пример:
|
Пример:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user