Permalink
Browse files

Added NuGet spec file and script to create package.

  • Loading branch information...
1 parent 22cf527 commit 9f81e91186936b128f48930f0714e336a13c5cdb @tomlokhorst committed Apr 20, 2011
View
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
+ <id>CoffeeSharp</id>
+ <version>0.1</version>
+ <authors>Tom Lokhorst</authors>
+ <description>
+CoffeeScript compiler for Windows.
+With a HttpHandler, command-line tool and a .NET library.
+
+For ASP.NET projects: After installing this package, all .coffee files will be compiled on the fly by the HttpHandler and returned as JavaScript.
+
+Note: For production usage, it is recommened to compile all CoffeeScript files from a build system using the command-line compiler.
+ </description>
+ <projectUrl>http://tomlokhorst.github.com/CoffeeSharp</projectUrl>
+ <iconUrl>http://tomlokhorst.github.com/CoffeeSharp/img/coffeescript-32.png</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <tags>CoffeeScript Compiler JavaScript coffee</tags>
+ </metadata>
+</package>
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <system.web>
+ <httpHandlers>
+ <add path="*.coffee" verb="GET" type="CoffeeSharp.CoffeeScriptHttpHandler, CoffeeScriptHttpHandler" />
+ </httpHandlers>
+ </system.web>
+</configuration>
View
@@ -0,0 +1,20 @@
+# Quickly hacked up "build" file to create NuGet package
+
+# remove whatever was left from previous build
+remove-item -recurse -force NuGet\lib
+remove-item -recurse -force NuGet\tool
+
+# copy files from a succesfull Visual Studio release build
+new-item -itemtype directory NuGet\lib
+new-item -itemtype directory NuGet\tool
+
+Copy-Item CoffeeScriptHttpHandler\bin\Release\CoffeeScriptHttpHandler.dll NuGet\lib
+Copy-Item CoffeeScriptHttpHandler\bin\Release\CoffeeSharp.dll NuGet\lib
+Copy-Item CoffeeScriptHttpHandler\bin\Release\Jurassic.dll NuGet\lib
+
+Copy-Item Coffee\bin\Release\Coffee.exe NuGet\tool
+Copy-Item Coffee\bin\Release\CoffeeSharp.dll NuGet\tool
+Copy-Item Coffee\bin\Release\Jurassic.dll NuGet\tool
+
+# actual packaging
+tools\NuGet.exe pack NuGet\CoffeeSharp.nuspec
File renamed without changes.
File renamed without changes.
View
Binary file not shown.

0 comments on commit 9f81e91

Please sign in to comment.