@robinherbots/grunt-nuget

v0.3.3
Grunt NuGet interface - Prepare, package and publish your application in NuGet gallery using Grunt JS
gruntplugin grunt nuget package pack spec update restore publish and 2 more...

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/'
        }
    }

For project update : (more informations)

    nugetupdate: {
        update: {
            src: 'project.sln'
        }
    }
});

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

grunt nugetkey --key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
npm i @robinherbots/grunt-nuget

Metadata

  • MIT
  • Whatever
  • SPA Tools
  • released 1/10/2022

Downloads

Maintainers