{"_id":"wau","_rev":"27-b3e8541c9efc07a20b2b487382ff19f3","name":"wau","description":"Watch and upload.","dist-tags":{"latest":"0.1.8"},"versions":{"0.1.0":{"name":"wau","description":"Watch and upload.","version":"0.1.0","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.0","dist":{"shasum":"447a6517e9c1ca4b9e9030d3237220d5166e20ff","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.0.tgz","integrity":"sha512-7Wu1qhYfP3GppnCmEdRxzFlkmvR/TcqoxTbmdG5leGmbqvKFAk/Wbwgm4ssrMhfG8/Lyirk2g9GJ2aGCLIQsRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJpTNnRABA0NiIR3u8Jk8puFt/QUNXDnheR7uW1fOLuAiBaJWKauvLjLP3f4l1psA2T3kewj1G7iT9s0+cnIupDxw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.1":{"name":"wau","description":"Watch and upload.","version":"0.1.1","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.1","dist":{"shasum":"be3c851e4d021fc259a483a574b1ab8525e828c6","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.1.tgz","integrity":"sha512-GJTcQqwDffolX+tspm39+V9WRI9Lgt0UERjiauNBKQHRo0yS3YNdpIwnTDOTRggoeU77PdRYXqnmv+f1sLmrHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmkAxpGLen+QUW7BMWYYJrTTq6wiWlrMR2Xrp5GSyLYAiEAxBvSdcMe69L+yHny6Ke6IdjzqdpAlAjFW1VcOKcukC8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.2":{"name":"wau","description":"Watch and upload.","version":"0.1.2","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.2","dist":{"shasum":"681910b2fea7f06a572f19a26b2a76dd54cec583","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.2.tgz","integrity":"sha512-jH5+blr2EZIsltCMzU5CEBC4upIT0CsNNhvUwmAvbXoogkIJiNGDfyQueLunuk7ojamCI+7XIz4EfmlgeAQv3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlOjf2CNTxreKjE6s6ncrXoh8kSYkUUz8X/hXLn/O/VAiAjKcKj8+WWeE5BLrLY04MBY8l5bQCmzXKU3HSaxGvrOQ=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.3":{"name":"wau","description":"Watch and upload.","version":"0.1.3","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.3","dist":{"shasum":"fd64757d0369b45a30d774adef76b34701dc0841","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.3.tgz","integrity":"sha512-AHUMQYh3HJBSaYJjFHUNjQlvVuiq0kYyvhP0NzL8lpHnyE5DO8nyJqJZntiVNBENh4eEbKuot1pWb9u3HZRvOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEpeVIPJeWUD5fj3DhFsnHv0fN+XgksH482GO4zzxAihAiEAqRuJ8bwJGhYKoF8m8H0MwpBlUvxi/Zt8O0+4LowDvwE="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.4":{"name":"wau","description":"Watch and upload.","version":"0.1.4","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.4","dist":{"shasum":"1df9120ef3e53049b25a15d76c34402f56845b0f","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.4.tgz","integrity":"sha512-kRWPydAcv4v+pWW6zrF0VBalge4A+PDH2zN7cSpkr+b1oHZU5sISCb8KrQwSw0Loee+AhcrOPgfbuB0c1ckoYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKN0Un2WSGPY4+zNvGU3RG01xiFAqc2M3TiNN+eH+NMQIhAKZhrqIRuoaII+0amkurHu/zZkYok5zed7l3xaZXibbc"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.5":{"name":"wau","description":"Watch and upload.","version":"0.1.5","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.5","dist":{"shasum":"2a256231e612da48b3b96104b22ba6c49b3b4607","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.5.tgz","integrity":"sha512-Vvm+t2rc7jhCzugYR6Rt/RqV56zTQ4HlIU/SugUZwuZqm5CiJqKYjtILIWWpRANepuZ4wWje+Bj0LJTxtsG9qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwbO3vRe67mRmtQGQc3ZdyLJl0PR9iLgmz4t3B96s0CwIgbHGjmGaUI1zwpLeyQpDa56R39kTLXJCqJjvEdZ4v4xM="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.6":{"name":"wau","description":"Watch and upload.","version":"0.1.6","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.6","dist":{"shasum":"683f15bd6113aa4cf78f7975980fab38e3d6864a","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.6.tgz","integrity":"sha512-Tkaf24omAs8kpSJJ4XQrVw/GSiSbtzsbNRBvULJrGVsRuv/90qmzwb/+SSvveFN3ttJ9mRcxfWqDKY9VNx0zBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsqTteGG0Y0ESs2Er8vuk9+U3lQot5D+MBkr7PeaStfQIhAN1wnolDKeT71HS7bimiL/nlhSHwfFBAxozFPQkH77o+"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.7":{"name":"wau","description":"Watch and upload.","version":"0.1.7","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.7","dist":{"shasum":"0f8202d545e41407ada443da11962d3971a566fd","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.7.tgz","integrity":"sha512-f1mLMs1HmJ1UqbjgkUNBFwVzix+76evZiN8mokb35+WOswIbH8Q1icrJ3NqFxUrvFIIdyd+Jwxs8SebK8xlsIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjaEKE1CyxoKt16XFinkx/fq5uzRA+Ke6+MZ66/XO+IwIgTlKWQE25LmAr266yg+A4Mnd6V9phX5qyBY+RNPcvQec="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]},"0.1.8":{"name":"wau","description":"Watch and upload.","version":"0.1.8","main":"./lib/watch.js","bin":{"wau":"./bin/wau"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"engines":{"node":">= 0.8.1"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"license":"MIT","dependencies":{"colorful":"~2.1.0","coffee-script":"~1.6.3","fs-extra":"~0.8.1","node-watch":"~0.3.4"},"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"_id":"wau@0.1.8","dist":{"shasum":"99dc588045b8912d1595a6c162f81f8e608f0fff","tarball":"https://registry.npmjs.org/wau/-/wau-0.1.8.tgz","integrity":"sha512-7+qzj2Mv86X0KeMH/sBFykKTBT1Flg19yd7lVp/eM2P8uyM0s1NLXcA+BLtGrdhyrSX73iN/FVVtVmN4t8zHFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWgF8ED1GKLo/Il9d6MhRojYGGm5vdUI26HyEWeiCNAwIgHbMB3eCs1ChfI4273rObZa5nABoMdXAq88FVFUN8zHk="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}]}},"readme":"# Watch And Upload\n\n监听目录并上传文件.\n\n![demo](https://i.alipayobjects.com/e/201311/1b1dy1fTwD.png)\n\n## 安装\n\n```\n$ npm install wau -g\n```\n\n## 使用\n\n在项目目录下执行 `wau`，注意第一次执行的时候会在 `~/` 目录下生产 `.wau` 配置文件，添加 `host` 机器后即可使用.\n\n```\n$ wau\n```\n\n### 配置说明\n\n```\n{\n  \"host\": \"admin@1.1.1.1\",\n  \"ignore_regexes\": [\n    \"\\\\.swp$\"\n  ],\n  \"project\": {\n    \"cashier\": {\n      \"test\": \"./cashier-htdocs/\",\n      \"remotePath\": \"/home/admin/build/\",\n      \"watch\": [\n        \"./cashier-htdocs/\"\n      ]\n    }\n  }\n}\n```\n\n* host: 远程机器，需配置不用密码自动登陆\n* ignore_regexes: 列在这里的文件不会被上传，通过正则的方式匹配\n* project: 项目\n  * test: 用来探测当前文件夹是否为该项目\n  * remotePath: 对应的远程服务器目录\n  * watch: 项目中需监听的文件夹\n\n### 项目配置\n\n在项目目录里可以增加一个 `.wau` 文件，里面的 host 优先级比 `~/.wau` 里的高。\n\n```\n{\n  \"host\": \"admin@1.1.1.1\"\n}\n```\n\n## FAQ\n\n* 报 `EMFILE error` 怎么处理?\n\n  执行下面命令并重启机器，详见：[https://github.com/joyent/node/issues/2479](https://github.com/joyent/node/issues/2479) 。\n\n  ```\n  echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf\n  echo -e 'limit maxfiles 8192 20480\\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf\n  echo 'ulimit -n 4096' | sudo tee -a /etc/profile \n  ```\n\n* 配置文件在哪里? \n\n  ~/.wau\n\n\n","maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"time":{"modified":"2022-06-28T22:10:47.446Z","created":"2013-11-30T08:03:53.896Z","0.1.0":"2013-11-30T08:03:59.549Z","0.1.1":"2013-11-30T08:07:41.696Z","0.1.2":"2013-11-30T08:53:53.513Z","0.1.3":"2013-11-30T09:08:06.649Z","0.1.4":"2013-12-03T10:20:56.842Z","0.1.5":"2013-12-03T10:23:58.974Z","0.1.6":"2013-12-06T02:43:38.799Z","0.1.7":"2013-12-06T02:55:47.190Z","0.1.8":"2014-03-11T10:03:59.270Z"},"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"repository":{"type":"git","url":"git://github.com/sorrycc/wau.git"},"keywords":["watch","upload"],"bugs":{"url":"https://github.com/sorrycc/wau/issues"},"license":"MIT","readmeFilename":"README.md","users":{}}