Skip to content

Commit

Permalink
Changing the build setup a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Jan 22, 2017
1 parent bb866cf commit 05563a4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(grunt) {
pkg: pkg,
clean: {
files: [
'files/**/*.*'
'releases/temp/'
]
},
copy: {
Expand All @@ -28,26 +28,28 @@ module.exports = function(grunt) {
expand: true,
cwd: projectRoot + 'bin/Release/',
src: [
'Skybrud.Essentials.dll',
'Skybrud.Essentials.xml',
pkg.name + '.dll',
pkg.name + '.xml'
],
dest: 'files/bin/'
dest: 'releases/temp/bin/'
}
]
}
},
zip: {
release: {
cwd: 'files/',
cwd: 'releases/temp/',
src: [
'files/**/*.*'
'releases/temp/**/*.*'
],
dest: 'releases/github/' + pkg.name + '.v' + version + '.zip'
}
},
umbracoPackage: {
dist: {
src: 'files/',
src: 'releases/temp/',
dest: 'releases/umbraco',
options: {
name: pkg.name,
Expand Down Expand Up @@ -76,8 +78,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-nuget');
grunt.loadNpmTasks('grunt-zip');

grunt.registerTask('dev', ['copy', 'zip', 'umbracoPackage', 'nugetpack']);
grunt.registerTask('release', ['clean', 'copy', 'zip', 'umbracoPackage', 'nugetpack', 'clean']);

grunt.registerTask('default', ['dev']);
grunt.registerTask('default', ['release']);

};

0 comments on commit 05563a4

Please sign in to comment.