diff --git a/urlpicker/Gruntfile.js b/urlpicker/Gruntfile.js index 125f95e..d70bc78 100644 --- a/urlpicker/Gruntfile.js +++ b/urlpicker/Gruntfile.js @@ -90,13 +90,21 @@ module.exports = function(grunt) { dest: '<%= dest %>/bin/' }, - nuget: { + nugetContent: { expand: true, cwd: '<%= dest %>', - src: '**', + src: ['**/*','!bin/**'], dest: 'tmp/nuget/content/' }, + nugetLib: { + expand: true, + cwd: '<%= dest %>', + src: 'bin/*.*', + dest: 'tmp/nuget/lib/net40/', + flatten: true + }, + umbraco: { expand: true, cwd: '<%= dest %>/', @@ -158,7 +166,7 @@ module.exports = function(grunt) { }); grunt.registerTask('default', ['concat', 'less', 'copy:config', 'copy:views', 'copy:dll', 'msbuild:dist']); - grunt.registerTask('nuget', ['clean', 'default', 'copy:nuget', 'template:nuspec', 'mkdir:pkg', 'nugetpack']); + grunt.registerTask('nuget', ['clean', 'default', 'copy:nugetContent', 'copy:nugetLib', 'template:nuspec', 'mkdir:pkg', 'nugetpack']); grunt.registerTask('package', ['clean', 'default', 'copy:umbraco', 'mkdir:pkg', 'umbracoPackage']); };