updated build and release tasks

This commit is contained in:
Torkel Ödegaard
2015-01-04 17:51:48 +01:00
parent 55bc150701
commit 5a3d3f5098
4 changed files with 10 additions and 4 deletions
+3
View File
@@ -1,4 +1,5 @@
module.exports = function(grunt) {
"use strict";
// Concat and Minify the src directory into dist
grunt.registerTask('build', [
@@ -32,6 +33,7 @@ module.exports = function(grunt) {
src: '**/*',
dest: '<%= tempDir %>/public/',
});
grunt.config('clean.dest_dir', ['<%= destDir %>']);
grunt.config('copy.backend_bin', {
cwd: '../bin',
expand: true,
@@ -46,6 +48,7 @@ module.exports = function(grunt) {
dest: '<%= tempDir %>'
});
grunt.task.run('copy:dist_to_tmp');
grunt.task.run('clean:dest_dir');
grunt.task.run('copy:backend_bin');
grunt.task.run('copy:backend_conf');
}
+2 -2
View File
@@ -38,7 +38,7 @@ module.exports = function(config) {
},
zip_release: {
options: {
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.zip'
archive: '<%= destDir %>/<%= pkg.name %><%= modeOptions.zipSuffix %>-<%= pkg.version %>.zip'
},
files : [
{
@@ -56,7 +56,7 @@ module.exports = function(config) {
},
tgz_release: {
options: {
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz'
archive: '<%= destDir %>/<%= pkg.name %><%= modeOptions.zipSuffix %>-<%= pkg.version %>.tar.gz'
},
files : [
{