Skip to content

Commit

Permalink
Merge pull request #27 from rudidude86/master
Browse files Browse the repository at this point in the history
os.tmpDir() - deprecated #26
  • Loading branch information
jgable authored Jan 17, 2017
2 parents 4346031 + c5fa6d9 commit c00665d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var cfg = {

As of version 0.0.3, we cache previously hinted files to improve performance. This is done by taking a hash of the contents of a file and checking it against previously successful linted files content hashes.

By default, we will use the `os.tmpDir()` as the location for holding our swapped files (the files are empty, just placeholders). To change this you can pass in a `swapPath` option:
By default, we will use the `os.tmpdir()` as the location for holding our swapped files (the files are empty, just placeholders). To change this you can pass in a `swapPath` option:

```javascript
var cfg = {
Expand Down
6 changes: 3 additions & 3 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"grunt": "~0.4.1",
"cache-swap": "~0.2.3"
"cache-swap": "~0.3.0"
},
"scripts": {
"test": "npm run lint && mocha",
Expand Down
2 changes: 1 addition & 1 deletion tasks/core/PhpLintTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function PhpLintTask(task) {

this.options = task.options({
spawnLimit: 10,
swapPath: os.tmpDir(),
swapPath: os.tmpdir(),
cache: true,
phpCmd: 'php'
});
Expand Down

0 comments on commit c00665d

Please sign in to comment.