blobfish

1.3.8 • Public • Published

npm version

Blobfish Logo

blobfish

This binary allows you to dynamically sync files between GitHub repositories.

🐡 Install

You can install this package globally with:

npm install blobfish

🐡 Usage

Run the following command in your project root folder:

blobfish init

Or, manually create a .blobfishrc file in your project root folder. The file is a JSON array of objects with the following structure:

[
  {
    "repo": "cool-org/awesome-repo",
    "files": [
      "path/to/file.js",
      {
        "from": "path/to/another_file.js",
        "to": "target/path/to/another_file.js"
      }
    ]
  }
]

As you can see, you can specify a file path to copy to, or just the file name to copy to the same directory.

Make sure you already have a GitHub personal access token with the repo scope. You can create one here.

Then, create a .env file in your project root folder with the following content:

GH_TOKEN=<your_token>

Then, run the following command to sync your files:

blobfish sync

You can also run the blobfish sync command with the --token flag if you don't want to use a .env file:

blobfish sync --token <your_token>

And that's it! Your files will be copied to the specified repositories.

Readme

Keywords

Package Sidebar

Install

npm i blobfish

Weekly Downloads

2

Version

1.3.8

License

ISC

Unpacked Size

9.3 kB

Total Files

5

Last publish

Collaborators

  • capythulhu