mirror of
https://github.com/samsonjs/NorthWatcher.git
synced 2026-03-25 09:25:48 +00:00
fix trigger regex, update package.json, use new version of batteries
This commit is contained in:
parent
f44b80b807
commit
72993faa34
2 changed files with 5 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ var fs = require('fs')
|
|||
|
||||
function main() {
|
||||
var path = require('path')
|
||||
, eachLine = require('batteries').FileExt.eachLine
|
||||
, eachLine = require('batteries').fs.eachLine
|
||||
, rcFile = require('path').join(process.env.HOME, '.northwatcher')
|
||||
|
||||
fs.stat(rcFile, function(err, s) {
|
||||
|
|
@ -35,7 +35,7 @@ function main() {
|
|||
|
||||
// <trigger> <dir> <command>
|
||||
var m
|
||||
if (m = line.match(/^([-+]{0,2})\s*(\S+)\s*(.+)$/i)) {
|
||||
if (m = line.match(/^([-+]{0,2})\s*(\S+)\s+(.+)$/i)) {
|
||||
var trigger = m[1] || '+-' // default watches for both
|
||||
, dir = m[2]
|
||||
, command = m[3]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
, "description" : "NorthWatcher is cron for filesystem changes."
|
||||
, "version" : "0.1.4"
|
||||
, "homepage" : "http://samhuri.net/proj/NorthWatcher"
|
||||
, "author" : "Sami Samhuri <sami.samhuri@gmail.com>"
|
||||
, "author" : "Sami Samhuri <sami@samhuri.net>"
|
||||
, "repository" :
|
||||
{ "type" : "git"
|
||||
, "url" : "http://github.com/samsonjs/NorthWatcher.git"
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
}
|
||||
, "bin" : { "northwatcher" : "./northwatcher.js" }
|
||||
, "main" : "./northwatcher.js"
|
||||
, "engines" : { "node" : ">=0.4.0" }
|
||||
, "engines" : { "node" : "0.4.x" }
|
||||
, "licenses" :
|
||||
[ { "type" : "MIT"
|
||||
, "url" : "http://github.com/samsonjs/NorthWatcher/raw/master/LICENSE"
|
||||
}
|
||||
]
|
||||
, "dependencies" : { "batteries" : "0.2.x" }
|
||||
, "dependencies" : { "batteries" : "0.4.x" }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue