@wireapp/copy-config
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

Wire

This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.

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.

/@wireapp/copy-config/

    Package Sidebar

    Install

    npm i @wireapp/copy-config

    Weekly Downloads

    108

    Version

    2.2.0

    License

    GPL-3.0

    Unpacked Size

    59.5 kB

    Total Files

    18

    Last publish

    Collaborators

    • augustocdias_wire
    • beltram_wire
    • tlebon
    • typfel
    • wireapp-owner
    • wireapp-member