Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
support npm run command
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 19, 2013
1 parent 6d32a5b commit eba072d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/nodejsctl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ status()
else
echo "$PROJECT_NAME is not running"
fi
exit 0;
}

case "$ACTION" in
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"main": "dispatch.js",
"scripts": {
"test": "make test-all",
"start": "./bin/nodejsctl start && npm run status",
"status": "./bin/nodejsctl status",
"stop": "./bin/nodejsctl stop && npm run status",
"restart": "./bin/nodejsctl restart && npm run status",
"blanket": {
"pattern": "//^((?!(node_modules|test|common)).)*$/",
"data-cover-flags": {
Expand Down

0 comments on commit eba072d

Please sign in to comment.