7.0.0 • Published 1 year ago

@charlietango/nuget v7.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
1 year ago

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
7.0.0

1 year ago

6.2.0

2 years ago

6.0.0

3 years ago

5.4.5

3 years ago

5.1.1

4 years ago

5.0.0

4 years ago

4.2.0

5 years ago

4.1.4

5 years ago

4.0.0

5 years ago

3.5.0

5 years ago

3.4.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.2

6 years ago

3.0.0

6 years ago

2.5.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.0.0

6 years ago

1.5.0

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.17

6 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago