# grunt-aem-watch

> A simple plug-in to upload files to an active AEM instance, recommended for use with grunt-contrib-watch.

Latest version **1.0.9** (published 2017-01-17) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-aem-watch
pnpm add grunt-aem-watch
yarn add grunt-aem-watch
bun add grunt-aem-watch
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2017-01-17 |
| First published | 2016-11-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | eat yr Ghost |
| Maintainers | eatyrghost |
| Keywords | grunt, aem, adobe, experience, manager, watch, plug-in |

## Links

- npm: https://www.npmjs.com/package/grunt-aem-watch
- Repository: https://github.com/eatyrghost/grunt-aem-watch
- Homepage: https://github.com/eatyrghost/grunt-aem-watch#readme
- Issues: https://github.com/eatyrghost/grunt-aem-watch/issues
- npm.io page: https://npm.io/package/grunt-aem-watch

## Dependencies (5)

- [async](https://npm.io/package/async.md) ^2.1.2
- [grunt](https://npm.io/package/grunt.md) ^1.0.1
- [moment](https://npm.io/package/moment.md) ^2.15.2
- [needle](https://npm.io/package/needle.md) ^1.3.0
- [grunt-contrib-watch](https://npm.io/package/grunt-contrib-watch.md) ^1.0.0

## Recent versions

- 1.0.9 (latest) — 2017-01-17
- 1.0.6 — 2016-12-19
- 1.0.5 — 2016-11-01
- 1.0.4 — 2016-11-01
- 1.0.3 — 2016-11-01

## README

# grunt-aem-watch
## aem-watch task
### Usage
```
aem-watch: {
	localAuthor: {
		options: {
			server: 'author'
		},
		src: [
			'your/js/path/**/*.js',
			'your/css/path/**/*.css',
		]
	},
	localPublish: {
		options: {
			server: 'publish'
		},
		src: [
			'your/js/path/**/*.js',
			'your/css/path/**/*.css',
		]
	},
	qaAuthor: {
		options: {
			host: 'qa-author.mydomain.com',
			password: 'myqapassword',
			server: 'author',
			username: 'myqausername'
		},
		src: [
			'your/js/path/**/*.js',
			'your/css/path/**/*.css',
		]
	},
	qaPublish: {
		options: {
			host: 'qa-publish.mydomain.com',
			password: 'myqapassword',
			server: 'publish',
			username: 'myqausername'
		},
		src: [
			'your/js/path/**/*.js',
			'your/css/path/**/*.css',
		]
	}
}
```
... then your Grunt Watch configuration...
```
watch: {
	your_task: {
		files: <your file rules>,
		tasks: ['aem-watch:localAuthor', 'aem-watch:localPublish']
	}
}
```
### Allowed Options
* host - The host (without protocol or port) to call, defaults to 'localhost'
* password - The password to use, defaults to 'admin'
* port - The port to use, defaults to '4502' for 'author' and '4503' for 'publish'
* server - Optional set of default configurations, either 'author' or 'publish'
* target - The target path to use if not the same as the file location, e.g. if you need to prefix with '/etc/designs/your-design/' you would define that as your target
* updateWindow - this allows you to specify, in seconds, how recently a file was updated to be eligible, defaults to 15
* username - The username to use, defaults to 'admin'

---
_Source: https://npm.io/package/grunt-aem-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
