This commit is contained in:
4
index.js
4
index.js
@@ -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){
|
||||
|
||||
18
readme.md
18
readme.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user