node: add location method.
This commit is contained in:
parent
a4e37cf9df
commit
203791c1f7
@ -122,6 +122,16 @@ Node.prototype.ensure = function ensure() {
|
||||
return this.config.ensure();
|
||||
};
|
||||
|
||||
/**
|
||||
* Create a file path using `prefix`.
|
||||
* @param {String} file
|
||||
* @returns {String}
|
||||
*/
|
||||
|
||||
Node.prototype.location = function location(name) {
|
||||
return this.config.location(name);
|
||||
};
|
||||
|
||||
/**
|
||||
* Open node. Bind all events.
|
||||
* @private
|
||||
|
||||
Loading…
Reference in New Issue
Block a user