Ind.ie is now Small Technology Foundation.
Commit 38bb3739 authored by Mikhail Kalashnik's avatar Mikhail Kalashnik

up version to 3.0 and update readme

parent a0f52646
......@@ -8,10 +8,22 @@ Node.js app to watch files and directories then sync them to the remote server u
- Execute `npm install`
- Copy `config.json.example` to `config.json`
- Edit `config.json`
- Exclude pattern must be compatible with <https://man.developpez.com/man1/rsync/#L16>
and <https://github.com/micromatch/micromatch#matching-features> at the same time
- Execute `npm run sync` to start sync and watch
## Changelog
### 3.0.0
- \[Breaking\] Exclude config also applied to watcher (before only for rsync).
Pattern must be compatible with <https://man.developpez.com/man1/rsync/#L16>
and <https://github.com/micromatch/micromatch#matching-features> at the same time
### 2.0.1
- Update dependencies to latest versions
### 2.0.0
- rsync configuration moved from code to config.json as `rsyncOptions` property.
......@@ -3,9 +3,10 @@
"from": "/Users/Username/Code/Project/",
"to": "remote@host:~/Code",
"exclude": [
"*.pyc",
".git/",
"npm-debug.log"
"**/*.pyc",
"npm-debug.log",
"**/.git",
"**/node_modules"
],
"rsyncOptions": {
"out-format": "%n",
......
......@@ -68,7 +68,7 @@ const CONFIG = require('./config.json');
function watch(project) {
const watcher = chokidar.watch(CONFIG[project].from, {
ignoreInitial: true,
ignored: CONFIG[project].exclude,
ignored: CONFIG[project].exclude || null,
cwd: CONFIG[project].from,
});
watchers.push({project, watcher});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment