Inject package version, files into nuspec on build

* Move /build/ -> /pkg/
* Add nuspec
* Refactor package:nuget workflow to create a temporary directory to build the package from - so we can store the transformed file
* Add grunt-template task to transform the nuspec
This commit is contained in:
Tom Fulton
2014-01-12 01:12:50 -07:00
parent 9a7bf3693c
commit eafd2d454c
4 changed files with 38 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Archetype</id>
<version><%= version %></version>
<title>Archetype</title>
<authors>imulus, tomfulton</authors>
<owners>imulus, tomfulton</owners>
<projectUrl>http://github.com/imulus/archetype</projectUrl>
<description><![CDATA[Archetype]]></description>
<tags>umbraco</tags>
<iconUrl>http://github.com/imulus/archetype/raw/master/assets/logo.png</iconUrl>
<licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
</metadata>
<files>
<% for (var file in files) { %>
<file src="<%- files[file].path %>" target="<%= files[file].target %>" />
<% } %>
</files>
</package>