WMeldon / grunt-nuget

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grunt-nuget

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

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

grunt.loadNpmTasks('grunt-nuget');

Then specify your config: ([more informations][doc-options])

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'
			}
		}
	}
});

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 some issues

About

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

License:MIT License