Skip to content

Commit

Permalink
Merge branch 'nuget'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Apr 21, 2011
2 parents 2a014eb + 9f81e91 commit 41b2642
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
20 changes: 20 additions & 0 deletions NuGet/CoffeeSharp.nuspec
@@ -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>
8 changes: 8 additions & 0 deletions NuGet/content/web.config.transform
@@ -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>
20 changes: 20 additions & 0 deletions create_nuget_package.ps1
@@ -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.
Binary file added tools/NuGet.exe
Binary file not shown.

0 comments on commit 41b2642

Please sign in to comment.