Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "runner", | ||
"description": "development restart script for node.js", | ||
"version": "1.0.2", | ||
"author": "Tobias Kopelke <nox@demoncode.de>", | ||
"dependencies": { | ||
"optimist": ">= 0.1.1", | ||
}, | ||
"keywords": ["development", "restart", "demon", "node.js"], | ||
"main": "runner.js", | ||
"bin": { "runner": "runner.js" }, | ||
"engines": { "node": ">= 0.2.0" } | ||
"name": "runner", | ||
"description": "development restart script for node.js", | ||
"version": "1.0.3", | ||
"author": "Tobias Kopelke <nox@demoncode.de>", | ||
"dependencies": { | ||
"optimist": ">= 0.1.1", | ||
}, | ||
"keywords": ["development", "restart", "demon", "node.js"], | ||
"main": "runner.js", | ||
"bin": { "runner": "runner.js" }, | ||
"engines": { "node": ">= 0.2.0" } | ||
} |
@@ -5,5 +5,6 @@ #!/usr/bin/env node | ||
, changes = { | ||
'1.02': ['added Readme.md'] | ||
'1.01': ['added npm-bin support'] | ||
'1.00': [ 'added changenotes' | ||
'1.03': ['added parameter check, exiting when no parameter where given'] | ||
, '1.02': ['added Readme.md'] | ||
, '1.01': ['added npm-bin support'] | ||
, '1.00': [ 'added changenotes' | ||
, 'added extension support, not only .js now...' | ||
@@ -20,3 +21,9 @@ , 'support for .js, .jade, .haml, .html, .sass, .scss, .less, .styl' | ||
, check = argv._ | ||
, args = (argv.p || argv.prozess || check.shift()).split(' ') | ||
if(!check.length) { | ||
console.log('Not enough parameters given...'); | ||
process.exit(); | ||
} | ||
var args = (argv.p || argv.prozess || check.shift()).split(' ') | ||
, util = require('util') | ||
@@ -23,0 +30,0 @@ , spawn = require('child_process').spawn |
5094
102