-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(task): prevent
spawn ENAMETOOLONG
on Windows
As grunt.util.spawn is deprecated (see https://github.com/gruntjs/grunt-legacy-util/blob/621563dd8f6966af39546991bb8d710146430b79/README.md), we might as well switch to native node api. I've chosen child_process.fork() because it avoids looking for the correct node executable on windows (compare https://github.com/gruntjs/grunt-legacy-util/blob/621563dd8f6966af39546991bb8d710146430b79/index.js#L168-L173) #Closes 161
- Loading branch information
Showing
2 changed files
with
15 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
var Server = require('karma').Server | ||
var data = JSON.parse(process.argv[2]) | ||
var server = new Server(data) | ||
|
||
server.start(data) | ||
process.stdin.on('readable', function () { | ||
var data = JSON.parse(process.stdin.read()) | ||
var server = new Server(data) | ||
server.start(data) | ||
}) |
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