Gitignore management for backup directories.
- Source
Methods
(inner) addToProjectGitignore(cwd) → {Object}
Adds .i18nkit/ to project .gitignore
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
Result with added, reason, path properties
- Type:
- Object
(inner) checkProjectGitignore(cwd) → {Object}
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- Object
(inner) ensureI18nkitGitignore(cwd) → {Object}
Creates or updates .i18nkit/.gitignore
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- Object
(inner) initializeBackupStructure(cwd, optionsopt) → {Object}
Initializes .i18nkit directory structure and gitignore
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
cwd | string | ||
options | Object | <optional> |
- Source
Returns:
- Type:
- Object
(inner) suggestGitignoreUpdate(cwd) → {Object|null}
Returns suggestion if .i18nkit/ not in project .gitignore
Parameters:
| Name | Type | Description |
|---|---|---|
cwd | string |
- Source
Returns:
- Type:
- Object |
null