Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Make background option work with grunt tasks written in CoffeeSc…
…ript Use node's built-in message channel for the background server, allowing only the modulePath argument to be passed to child_process.fork. This works around an issue in CoffeeScript's interceptor, which doesn't support treating args as an optional parameter, passing options as args and omitting options. Closes #174
- Loading branch information
1 parent
ae37486
commit 52174ef
Showing
3 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var Server = require('karma').Server | ||
process.stdin.on('readable', function () { | ||
var data = JSON.parse(process.stdin.read()) | ||
var server = new Server(data) | ||
server.start(data) | ||
|
||
process.on('message', function (data) { | ||
var server = new Server(data.config) | ||
server.start() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters