New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@charlietango/nuget

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@charlietango/nuget

Package and publish a NuGet package to a custom feed.

  • 7.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
47
decreased by-51.04%
Maintainers
2
Weekly downloads
 
Created
Source

NuGet task

Package and publish a NuGet package to a custom feed. This is built for our specific needs on our own internal projects.

Requirements

  • Node 8.x+
  • Mono - For Mac/Linux

Usage

Add the dependency

yarn add @charlietango/nuget --dev

Build your static project into a build directory dist/static, and package it with the Node API:

const nuget = require('@charlietango/nuget');

nuget({
  files: 'dist',
  output: 'output',
});

or calling the bin

$ ct-nuget dist -o output

The NuGet will be packaged and pushed to the feed.

Structure

To avoid polluting the .NET projects, all the files in the NuGet package should be contained in a directory. By default we are using the static directory inside dist dist. Once the NuGet package is installed, a shell script will copy all the files into the project

Config

NameTypeDefaultDescription
namestringname from package.json
packageIdstringdk.charlietango.{upperFirst(camelCase(name))}Valid packageId
versionstringversion from package.jsonValid semver version string
filesglobdist in project rootThe directories and files to add.
rootDirstringdistThe root directory. This will be removed from all the paths.
globOptionsObject{ignore: ['**/index.html']}
authorstring'Charlie Tango'
iconUrlstringhttps://ct-assets.netlify.com/React_logo-64.png
descriptionstringdescription from package.json
apiKeystringprocess.env.NUGET_API_KEY
nugetFeedstringprocess.env.NUGET_FEED
outputstringCopy the .nupkg file to this directory
cachestringnode_modules/.cache/nugetTemp directory to use when building
legacyInstallbooleanfalseDon't add the powershell tools to copy files into the project after install, and instead use the special "content" directory
quietbooleanfalse

FAQs

Package last updated on 14 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc