This commit is contained in:
Tommy Parnell
2016-02-08 17:38:45 -05:00
parent e7481790f3
commit d78b30b192
2 changed files with 20 additions and 2 deletions

View File

@@ -13,8 +13,8 @@ module.exports = function (options) {
if(options){
nugetPath = options.nugetPath || nugetPath;
monoPath = options.monoPath || monoPath;
if(options.nugetArguments && options.nugetArguments.length > 0){
cmdArgs = cmdArgs.concat(options.nugetArguments);
if(options.additionalArgs && options.additionalArgs.length > 0){
cmdArgs = cmdArgs.concat(options.additionalArgs);
}
}
if(monoPath && monoPath.length > 0){

View File

@@ -44,6 +44,24 @@ Default: `null`
You can provide a path to mono if you are on ubuntu (currently untested)
#### additionalArgs
type `array`
Default: `null`
You can provide additional arguments such as -PackageDirectory
```js
var gulp = require('gulp');
var nugetRestore = require('gulp-nuget-restore');
gulp.task('default', function () {
return gulp.src('./path/to/MySlnFile.sln')
.pipe(nugetRestore({additionalArgs: ["-PackagesDirectory", "..\\packages"]}));
});
```
## License