pdf.js/package.json
Rob Wu c3c6d503ee Improve robustness of builder (esp. on Windows)
- Use rimraf instead of a custom removeDirSync implementation - rimraf
  deals with edge cases like EPERM on Windows.

- Detect when the process exits before it was requested via stop(),
  instead of running the cleanup handler.

- Add fallback for process detection when the process exits before it
  was requested. On *nix systems, this is done via pkill and pgrep, on
  Windows this is done via wmic.

- Add some asserts to check the preconditions of the methods, and output
  some status information to aid debugging in case of failure.

I have verified that these changes work on ArchLinux and Windows XP,
using Chrome and Firefox, as follows:

1. node make unittest

2. node make unittest
3. Restart the Firefox process via the task manager as soon as possible.

4. node make unittest
5. Temporary lock a file/directory within the temporary profile
   directory until the tests have finished, and then unlock the file
   within 10 seconds.

In all cases, the auxilary browser processes are killed, and the
temporary profile directory is wiped.
2015-07-16 21:40:57 +02:00

29 lines
606 B
JSON

{
"name": "pdf.js",
"version": "0.8.0",
"devDependencies": {
"jsdoc": "3.3.0-alpha9",
"jshint": "~2.4.0",
"wintersmith": "~2.0.0",
"moment": "~2.3.0",
"underscore": "~1.4.0",
"rimraf": "^2.4.1",
"shelljs": "0.4.0",
"typogr": "~0.5.0",
"yargs": "~1.2.1"
},
"scripts": {
"test": "node ./node_modules/.bin/jshint --extra-ext .jsm ."
},
"repository": {
"type": "git",
"url": "git://github.com/mozilla/pdf.js.git"
},
"licenses": [
{
"type": "Apache v2",
"url": "https://github.com/mozilla/pdf.js/blob/master/LICENSE"
}
]
}