Comparing version 0.1.1 to 0.1.3
@@ -21,3 +21,9 @@ /*! | ||
get: function() { | ||
return path.resolve(this.cache.cwd || this.options.cwd || process.cwd()); | ||
if (typeof this.cache.cwd === 'string') { | ||
return path.resolve(this.cache.cwd); | ||
} | ||
if (typeof this.options.cwd === 'string') { | ||
return path.resolve(this.options.cwd); | ||
} | ||
return process.cwd(); | ||
} | ||
@@ -24,0 +30,0 @@ }); |
{ | ||
"name": "base-cwd", | ||
"description": "Base plugin that adds a getter/setter for the current working directory.", | ||
"version": "0.1.1", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/jonschlinkert/base-cwd", | ||
@@ -23,9 +23,17 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"devDependencies": { | ||
"base": "^0.6.4", | ||
"base": "^0.7.2", | ||
"gulp-format-md": "^0.1.5", | ||
"mocha": "^2.3.4" | ||
}, | ||
"keywords": ["base", "baseplugin", "app"], | ||
"keywords": [ | ||
"base", | ||
"baseplugin", | ||
"app" | ||
], | ||
"verb": { | ||
"toc": false, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
@@ -32,0 +40,0 @@ "gulp-format-md" |
@@ -51,2 +51,16 @@ # base-cwd [](https://www.npmjs.com/package/base-cwd) [](https://travis-ci.org/jonschlinkert/base-cwd) | ||
## Generate docs | ||
Generate readme and API documentation with [verb][]: | ||
```sh | ||
$ npm i -d && npm run docs | ||
``` | ||
Or, if [verb][] is installed globally: | ||
```sh | ||
$ verb | ||
``` | ||
## Running tests | ||
@@ -74,6 +88,6 @@ | ||
Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert) | ||
Released under the MIT license. | ||
Released under the [MIT license](https://github.com/jonschlinkert/base-cwd/blob/master/LICENSE). | ||
*** | ||
_This file was generated by [verb](https://github.com/verbose/verb) on January 23, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 13, 2016._ |
6035
28
91
3