Skip to content

nugetrestore only pass packagesDirectory when defined #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,5 @@ $RECYCLE.BIN/

# Mac desktop service store files
.DS_Store
package-lock.json
.idea
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Release History
* 0.1.0 Initial Release
* 0.1.1 Fix issue with OutputDirectory in NuGet Push
* 0.1.2
* Update NuGet.exe to version 2.8
* Add support for csproj files in nugetpack command.
* 0.1.3
* Add package restore command
* Added mono support on platforms other than windows
* Fix issue when nuget-pack destination directory does not exists
* 0.1.4
* Update NuGet.exe to version 2.8.2
* Fix issue in options parsing.
* 0.1.5
* Update NuGet.exe to version 3.2.0
* 0.1.6
* Update NuGet.exe to version 3.4.4
* Add default `Source` option in `push` task to allow backward compatibility
* 0.1.7
* Update NuGet.exe to version 3.5.0
* 0.2.0
* Add task nugetupdate
* 0.3.0
* Update NuGet.exe to version 4.1
* 0.3.1
* Update NuGet.exe to version 4.7.1
* 0.3.2
* Update NuGet.exe to version 5.4.0
* Fix packageDirectoty bug with nugetrestore
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,30 +83,3 @@ grunt nugetkey --key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[restore-options]: https://github.com/spatools/grunt-nuget/wiki/Restore-Options
[update-options]: https://github.com/spatools/grunt-nuget/wiki/Update-Options
[key-options]: https://github.com/spatools/grunt-nuget/wiki/Key-Options

## Release History
* 0.1.0 Initial Release
* 0.1.1 Fix issue with OutputDirectory in NuGet Push
* 0.1.2
* Update NuGet.exe to version 2.8
* Add support for csproj files in nugetpack command.
* 0.1.3
* Add package restore command
* Added mono support on platforms other than windows
* Fix issue when nuget-pack destination directory does not exists
* 0.1.4
* Update NuGet.exe to version 2.8.2
* Fix issue in options parsing.
* 0.1.5
* Update NuGet.exe to version 3.2.0
* 0.1.6
* Update NuGet.exe to version 3.4.4
* Add default `Source` option in `push` task to allow backward compatibility
* 0.1.7
* Update NuGet.exe to version 3.5.0
* 0.2.0
* Add task nugetupdate
* 0.3.0
* Update NuGet.exe to version 4.1
* 0.3.1
* Update NuGet.exe to version 4.7.1
Binary file modified libs/nuget.exe
Binary file not shown.
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"name": "grunt-nuget",
"name": "@robinherbots/grunt-nuget",
"description": "Grunt NuGet interface - Prepare, package and publish your application in NuGet gallery using Grunt JS",
"version": "0.3.1",
"version": "0.3.3",
"homepage": "https://github.com/spatools/grunt-nuget.git",
"license": "MIT",
"author": {
"name": "SPA Tools",
"url": "http://github.com/spatools/"
},
"author": "SPA Tools (http://github.com/spatools/)",
"repository": {
"type": "git",
"url": "git://github.com/spatools/grunt-nuget.git"
Expand All @@ -19,8 +16,8 @@
"test": "grunt"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.0.0"
"grunt": "^1.1.0",
"grunt-contrib-clean": "^2.0.0"
},
"keywords": [
"gruntplugin",
Expand All @@ -33,5 +30,10 @@
"restore",
"publish",
"gallery"
]
],
"main": "Gruntfile.js",
"directories": {
"test": "tests"
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion tasks/nuget-restore.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function (grunt) {
async.forEach(
file.src,
function (src, complete) {
nuget.restore(src, _.extend(params, { packagesDirectory: dest }), complete);
nuget.restore(src, dest ? _.extend(params, { packagesDirectory: dest }) : params, complete);
},
callback
);
Expand Down