gulp-proactive-nugetpack
v0.6.5
Published
This package will autopackage a nuspec file found in the solution root.
Downloads
23
Readme
gulp-proactive-nugetpack is a module to easily pack a nuspec file in the solution root.
Pre-requisistes
- Install Node.js - https://nodejs.org/en/
- Install gulp globaly -
npm install gulp -g
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);
});