mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Updated zip release task
This commit is contained in:
parent
7c72705bc5
commit
318338f967
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,8 @@
|
|||||||
node_modules
|
node_modules
|
||||||
coverage/
|
coverage/
|
||||||
.aws-config.json
|
.aws-config.json
|
||||||
dist
|
/dist
|
||||||
|
/tmp
|
||||||
|
|
||||||
# locally required config files
|
# locally required config files
|
||||||
web.config
|
web.config
|
||||||
|
@ -4,6 +4,7 @@ module.exports = function(grunt) {
|
|||||||
// build, then zip and upload to s3
|
// build, then zip and upload to s3
|
||||||
grunt.registerTask('release', [
|
grunt.registerTask('release', [
|
||||||
'build',
|
'build',
|
||||||
|
'build-post-process',
|
||||||
'compress:zip_release',
|
'compress:zip_release',
|
||||||
'compress:tgz_release',
|
'compress:tgz_release',
|
||||||
]);
|
]);
|
||||||
|
@ -2,12 +2,12 @@ module.exports = function(config) {
|
|||||||
return {
|
return {
|
||||||
zip: {
|
zip: {
|
||||||
options: {
|
options: {
|
||||||
archive: '<%= tempDir %>/<%= pkg.name %>-latest.zip'
|
archive: '<%= destDir %>/<%= pkg.name %>-latest.zip'
|
||||||
},
|
},
|
||||||
files : [
|
files : [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= destDir %>',
|
cwd: '<%= tempDir %>',
|
||||||
src: ['**/*'],
|
src: ['**/*'],
|
||||||
dest: '<%= pkg.name %>/',
|
dest: '<%= pkg.name %>/',
|
||||||
},
|
},
|
||||||
@ -20,12 +20,12 @@ module.exports = function(config) {
|
|||||||
},
|
},
|
||||||
tgz: {
|
tgz: {
|
||||||
options: {
|
options: {
|
||||||
archive: '<%= tempDir %>/<%= pkg.name %>-latest.tar.gz'
|
archive: '<%= destDir %>/<%= pkg.name %>-latest.tar.gz'
|
||||||
},
|
},
|
||||||
files : [
|
files : [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= destDir %>',
|
cwd: '<%= tempDir %>',
|
||||||
src: ['**/*'],
|
src: ['**/*'],
|
||||||
dest: '<%= pkg.name %>/',
|
dest: '<%= pkg.name %>/',
|
||||||
},
|
},
|
||||||
@ -38,12 +38,12 @@ module.exports = function(config) {
|
|||||||
},
|
},
|
||||||
zip_release: {
|
zip_release: {
|
||||||
options: {
|
options: {
|
||||||
archive: '<%= tempDir %>/<%= pkg.name %>-<%= pkg.version %>.zip'
|
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.zip'
|
||||||
},
|
},
|
||||||
files : [
|
files : [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= destDir %>',
|
cwd: '<%= tempDir %>',
|
||||||
src: ['**/*'],
|
src: ['**/*'],
|
||||||
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
||||||
},
|
},
|
||||||
@ -56,12 +56,12 @@ module.exports = function(config) {
|
|||||||
},
|
},
|
||||||
tgz_release: {
|
tgz_release: {
|
||||||
options: {
|
options: {
|
||||||
archive: '<%= tempDir %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz'
|
archive: '<%= destDir %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz'
|
||||||
},
|
},
|
||||||
files : [
|
files : [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= destDir %>',
|
cwd: '<%= tempDir %>',
|
||||||
src: ['**/*'],
|
src: ['**/*'],
|
||||||
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
||||||
},
|
},
|
||||||
@ -73,4 +73,4 @@ module.exports = function(config) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user