Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Grunt NuGet Interface - Create and publish your NuGet packages using GruntJS.
JavaScript
Branch: master

Add NPM badge to Readme

latest commit 9335f86632
SomaticIT authored

README.md

grunt-nuget NPM version

Grunt NuGet Interface - Create and publish your NuGet packages using GruntJS.

Getting Started

Install this grunt plugin next to your project's gruntfile with: npm install grunt-nuget --save-dev

NOTE : if you are on a unix system, you should install Mono first.

Then add this line to your project's Gruntfile.js :

grunt.loadNpmTasks('grunt-nuget');

Then specify your config:

grunt.initConfig({

For package creation : (more informations)

    nugetpack: {
        dist: {
            src: 'tests/Package.nuspec',
            dest: 'tests/'
        }
    }

For package publication : (more informations)

    nugetpush: {
        dist: {
            src: 'tests/*.nupkg',

            options: {
                apiKey: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
            }
        }
    }

For package restore : (more informations)

    nugetrestore: {
        restore: {
            src: 'tests/packages.config',
            dest: 'packages/'
        }
    }
});

In order to avoid specifying your API Key inside your package you can use command line task : (more informations)

grunt nugetkey --key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

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.
Something went wrong with that request. Please try again.