gulp-proactive-nugetpack

0.6.5 • Public • Published

gulp-proactive-nugetpack is a module to easily pack a nuspec file in the solution root.

NPM

Pre-requisistes

Install

npm install --save-dev gulp-proactive-nugetpack

To run tests

npm test

Usage

Javascript - simple

var proActiveNuGet = require('gulp-proactive-nugetpack');

// BuildConfiguration <debug,release> (default is debug)
// Label (default is an empty string)
proActiveNuGet.pack(BuildConfiguration, Label);

Javascript - With gulp and gulp-param

// npm install --save-dev gulp gulp-param

var gulp = require('gulp');

// converts parameters from the Command Line Interface to named paramaters. Enables integration with the Build Servers
var param = require('gulp-param')(require('gulp'), process.argv);
      
//Accepts parameter --BuildConfiguration <debug,release> from the CLI. variable is magically created by gulp-param
//Accepts parameter --Label <string> from the CLI. variable is magically created by gulp-param
// ex from CLI: gulp nuget-pack --BuildConfiguration "debug" --Label "MyLabel"
gulp.task('nuget-pack', function (BuildConfiguration, Label) {
    var proActiveNuGet = require('gulp-proactive-nugetpack');
    proActiveNuGet.pack(BuildConfiguration, Label);
});

Readme

Keywords

Package Sidebar

Install

npm i gulp-proactive-nugetpack

Weekly Downloads

20

Version

0.6.5

License

ISC

Last publish

Collaborators

  • allanhvam
  • singingknight
  • themightygugi