# aemmultisync

A tool to allow [`aemsync`](https://www.npmjs.com/package/aemsync)-ing multiple directories at once.

## Usage

Sync two directories to one target:

`ams -t http://admin:admin@example.gov:4503 -w ~/dev/aem/frontend,~/dev/aemdam`

You can also have multiple targets, in case you need to sync multiple directories to author and publish. Simply comma separate each address, and each directory to watch:

`ams -t http://admin:admin@example.gov:4502,http://admin:admin@example.gov:4503 -w ~/dir1/sub/folder,~/dir2`

## Roadmap

Add exclusion and custom packmgr url support

Profile based configuration: configure a json object with targets, directories, exclude filters, etc. and deploy that config from the cli

_Potentially_ switch back to `aemsync@1.1.1`, depending on how 3.0.0 functions for my team.

## Contributing

Fork the repo, checkout the `dev` branch, make your changes, and then submit a pull request from your repo to this one.

## Credits

This is really just a wrapper around [aemsync](https://github.com/gavoja/aemsync) to allow multiple watch directories. It wouldn't be possible without that project.

made with 🤘 and 🖤
