@wireapp/copy-config
v2.2.0
Published
Wire's internal configuration copy tool
Downloads
569
Keywords
Readme
Wire
This repository is part of the source code of Wire. You can find more information at wire.com or by contacting [email protected].
You can find the published source code at github.com/wireapp.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
CopyConfig
Wire's internal configuration copy tool.
Installation
yarn add @wireapp/copy-config
CLI Setup
Create a configuration file following the cosmiconfig standard (e.g. .copyconfigrc.js
) to your project and add parameters (see CopyConfigOptions.ts
).
Note: the files
parameter needs to be specified, all other are optional.
Environment variables
Additionally, some parameters can be set via environment variables (which then take precedence above all other configuration):
| Parameter | Environment variable | Example |
| --- | --- | --- |
| externalDir
| WIRE_CONFIGURATION_EXTERNAL_DIR
| /home/user/externalDir
|
| files
| WIRE_CONFIGURATION_FILES
| /path/to/source.txt:/path/to/destination.txt;/path/to/source/:/path/to/destination/
|
| repositoryUrl
| WIRE_CONFIGURATION_REPOSITORY
| /path/to/anotherDir/*:[/path/to/thirdDir/,/path/to/destinationDir/]
|
CLI Usage
copy-config
API Usage
See cli.ts
.