From 293aa7f6f361bac9304a87e657df41e0e3e433b0 Mon Sep 17 00:00:00 2001 From: Tom Fulton Date: Tue, 24 Nov 2015 21:54:01 -0800 Subject: [PATCH] Update grunt-umbraco-package to v1.0 --- Gruntfile.js | 25 +++++++++++++------------ config/package.xml | 39 --------------------------------------- package.json | 2 +- 3 files changed, 14 insertions(+), 52 deletions(-) delete mode 100644 config/package.xml diff --git a/Gruntfile.js b/Gruntfile.js index 4c1340c..0b1e65a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -193,18 +193,19 @@ module.exports = function(grunt) { }, umbracoPackage: { - options: { - name: "<%= pkgMeta.name %>", - version: '<%= pkgMeta.version %>', - url: '<%= pkgMeta.url %>', - license: '<%= pkgMeta.license %>', - licenseUrl: '<%= pkgMeta.licenseUrl %>', - author: '<%= pkgMeta.author %>', - authorUrl: '<%= pkgMeta.authorUrl %>', - manifest: 'config/package.xml', - readme: 'config/readme.txt', - sourceDir: 'tmp/umbraco', - outputDir: 'pkg', + dist: { + src: 'tmp/umbraco', + dest: 'pkg', + options: { + name: "<%= pkgMeta.name %>", + version: '<%= pkgMeta.version %>', + url: '<%= pkgMeta.url %>', + license: '<%= pkgMeta.license %>', + licenseUrl: '<%= pkgMeta.licenseUrl %>', + author: '<%= pkgMeta.author %>', + authorUrl: '<%= pkgMeta.authorUrl %>', + readme: '<%= grunt.file.read("config/readme.txt") %>' + } } }, diff --git a/config/package.xml b/config/package.xml deleted file mode 100644 index 1bb787a..0000000 --- a/config/package.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - <%= name %> - <%= version %> - <%= license %> - <%= url %> - - 0 - 0 - 0 - - - - <%= author %> - <%= authorUrl %> - - ]]> - - - - - - - - - - - - <% files.forEach(function(file) { %> - - <%= file.guid %>.<%= file.ext %> - <%= file.dir %> - <%= file.name %> - - <% }); %> - - \ No newline at end of file diff --git a/package.json b/package.json index 4032a92..a1b04ff 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "grunt-msbuild": "~0.1.9", "grunt-dotnet-assembly-info": "~1.0.9", "load-grunt-tasks": "~0.4.0", - "grunt-umbraco-package": "0.0.6" + "grunt-umbraco-package": "^1.0.0" }, "repository": { "type": "git",