grafana/tasks/options/compress.js

31 lines
745 B
JavaScript
Raw Normal View History

2013-11-14 17:07:14 -06:00
module.exports = function(config) {
2015-04-20 05:33:32 -05:00
'use strict';
var task = {
release: {
2013-11-14 17:07:14 -06:00
options: {
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.tar.gz'
2013-11-14 17:07:14 -06:00
},
files : [
{
expand: true,
2015-01-01 15:26:57 -06:00
cwd: '<%= tempDir %>',
2013-11-14 17:07:14 -06:00
src: ['**/*'],
2015-04-20 05:33:32 -05:00
dest: '<%= pkg.name %>-<%= pkg.version %>/',
2013-11-14 17:07:14 -06:00
},
{
expand: true,
2014-01-19 09:24:47 -06:00
src: ['LICENSE.md', 'README.md', 'NOTICE.md'],
dest: '<%= pkg.name %>-<%= pkg.version %>/',
2013-11-14 17:07:14 -06:00
}
]
}
};
if (config.platform === 'windows') {
task.release.options.archive = '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.<%= platform %>-<%= arch %>.zip';
}
return task;
2015-01-01 15:26:57 -06:00
};