Skip to content

Commit c7e2e6a

Browse files
author
Georgios Diamantopoulos
committed
Nuget packaging
Please edit the .nuspec to your liking You will need to create a nuget account to publish - see http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package - most of these steps I've taken care for you, you just need to get an API key and add it to your nuget.exe Running update.ps1 will update the nuget.exe by itself Build.ps1 will build the package Publish.ps1 will... well, publish it :)
1 parent 4795abf commit c7e2e6a

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

nuget/NuGet.exe

1.54 MB
Binary file not shown.

nuget/Package.nuspec

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>angular-file-upload</id>
5+
<title>Angular file upload</title>
6+
<version>1.1.9</version>
7+
<authors>Danial Farid</authors>
8+
<owners>Danial Farid</owners>
9+
<!-- licenseUrl>????</licenseUrl -->
10+
<projectUrl>https://github.com/danialfarid/angular-file-upload</projectUrl>
11+
<iconUrl>http://angularjs.org/favicon.ico</iconUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>Lightweight Angular JS directive to upload files.</description>
14+
<releaseNotes>Initial release</releaseNotes>
15+
<copyright>Copyright 2013</copyright>
16+
<tags>angularjs upload</tags>
17+
<dependencies>
18+
</dependencies>
19+
</metadata>
20+
</package>

nuget/build.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
$nugetContent = "content"
2+
3+
$mvcJs = $nugetContent + "/Scripts"
4+
$srcJs = $src + "..\dist\*"
5+
6+
if(Test-Path $nugetContent) { Remove-Item -Recurse -Force $nugetContent }
7+
mkdir $nugetContent
8+
mkdir $mvcJs
9+
10+
copy-item -Recurse -Force $srcJs $mvcJs
11+
12+
.\nuget pack Package.nuspec

nuget/publish.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$pkg = get-item *.nupkg | Sort-Object LastAccessTime -Descending | Select-Object -First 1
2+
3+
.\nuget push $pkg.Name

nuget/update.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.\nuget.exe update -self

0 commit comments

Comments
 (0)