Commit Graph

21 Commits

Author SHA1 Message Date
Remy Sharp
7496f08330 fix: incorrectly exiting when required
test: updated travis tests
2015-09-09 22:29:26 +01:00
Remy Sharp
01bc4d0ba1 Merge pull request #515 from STRML/fixQuit
Fix nodemon.json's 'quit' listener and add test.
2015-05-19 13:28:22 +01:00
Doug Patti
56c4caf2ed pull command stringification into a utility
This was copied and pasted more than a handful of times around the
library and tests. Some implementations were more naive and did not
try to add quotes if there are spaces within a single argument.

There is one slight oddity in one of the cli parse tests. Stringifying
the command causes many of the arguments to show up in quotes when they
probably shouldn't. This seems to trace back to a deep problem related
to how commands are pulled out of package.scripts.start and is out of
scope for this patch. Even though the test might look incorrect now, it
is an accurate reflection of what the generated command is.
2015-04-22 13:42:55 -04:00
Samuel Reed
15751fe432 Fix nodemon.json's 'quit' listener and add test. 2015-03-02 18:44:21 +07:00
Remy Sharp
242f03cdd9 Detail which events bound + test fix 2015-01-19 20:13:12 +00:00
Remy Sharp
5016a38b0a Fixed crazy restart loop
Ensure we don't restart when the last find was 0 seconds ago
2015-01-19 17:07:17 +00:00
Remy Sharp
1bb7c01fb6 Check of object hasOwnProp method 2015-01-18 10:48:18 +00:00
Remy Sharp
2367a26fdd This test is for 0.10+ 2015-01-18 10:21:50 +00:00
Remy Sharp
c9b6d989ea No event nodemon support for 0.8 2015-01-16 22:56:05 +00:00
Remy Sharp
1f002f61d3 Blinking nodemon.json file was missing from git! 2015-01-16 21:56:49 +00:00
Remy Sharp
fa7826a2ac Fixed event binding to nodemon not bus 2015-01-16 17:36:25 +00:00
Remy Sharp
a36dece91d fixing scripted event tests 2015-01-16 16:07:45 +00:00
Remy Sharp
2647156034 Diagnosing Travis error (VM) 2015-01-16 13:47:20 +00:00
Remy Sharp
65d2d49120 Merge branch 'master' into feature/pre-post-events 2015-01-16 10:07:03 +00:00
Remy Sharp
8d08b183a1 Fixed nodemon require reset fully
And related events test
2015-01-07 21:45:14 +00:00
Remy Sharp
69715211d0 Merge branch 'master' into feature/pre-post-events 2015-01-03 15:49:16 +00:00
Remy Sharp
449a822d7d fixing test with fixed parser 2015-01-02 11:49:09 +00:00
Remy Sharp
6f6d7ae496 Early support for event callbacks
Allows user to have event handlers in the nodemon config, such as:

{
  "events": {
    "crash": "say 'your app crashed'",
    "start": "echo 'App started' | tee app.log"
  }
}
2014-12-09 22:56:02 +00:00
Remy Sharp
818594c902 WIP 2014-12-09 22:27:03 +00:00
Remy Sharp
f5d4339eee Testing events fire on api 2014-12-09 14:45:39 +00:00
Remy Sharp
80e8f7598f Early testing for event tests 2014-12-09 11:09:29 +00:00