nuget-in-path
Nuget library wrapper for Node.js
Last updated 3 years ago by fezvrasta .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nuget-in-path 
SYNC missed versions from official npm registry.

nuget-in-path

This is a fork of https://github.com/kmalakoff/node-nuget

The only difference is that this package will attempt to use the locally installed version of NuGet before fallbacking to the one shipped with this package.


Nuget library wrapper for Node.js.

This library uses Vinyl files for flexibility and Gulp compatibility.

Raw usage

nuget = require 'nuget'

nuget.pack 'package.nuspec', (err, nupkg_file) ->
  throw err if err

  nuget.push nupkg_file, (err) ->
    throw err if err

    console.log "Successfully pushed #{nupkg_file.path}"

Gulp usage

gulp = require 'gulp'
gutil = require 'gulp-util'
es = require 'event-stream'
nuget = require 'nuget'

nugetGulp = -> es.map (file, callback) ->
  nuget.pack file, (err, nupkg_file) ->
    return callback(err) if err
    nuget.push nupkg_file, (err) -> if err then gutil.log(err) else callback()

gulp.src('*.nuspec')
  .pipe(nugetGulp())

Configuring Nuget

Add the 'nuget.org' source to your Nuget config file

$ mono nuget.exe sources add -name "nuget.org" -source "https://www.nuget.org/api/v2/package"

Add the credentials for your source

$ mono nuget.exe setApiKey {YOUR_API_KEY} -source nuget.org

Current Tags

  • 2.0.1                                ...           latest (3 years ago)

1 Versions

  • 2.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |