Skip to content

Commit 1c48231

Browse files
committed
Publish dev builds
1 parent 0fef905 commit 1c48231

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Gruntfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module.exports = function(grunt) {
140140
all: {
141141
upload: [{
142142
src: 'build/**/*',
143-
dest: '<%= pkg.version %>/',
143+
dest: '<%= pkg.release %>/',
144144
rel: 'build/'
145145
}]
146146
}
@@ -176,6 +176,13 @@ module.exports = function(grunt) {
176176
}
177177
};
178178

179+
if (grunt.option('dev')) {
180+
gruntConfig.pkg.release = 'dev';
181+
gruntConfig.pkg.version = gruntConfig.pkg.version + '-post';
182+
} else {
183+
gruntConfig.pkg.release = gruntConfig.pkg.version;
184+
}
185+
179186
grunt.initConfig(gruntConfig);
180187

181188
// Custom Grunt tasks

template/_copyright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js <%= pkg.version %> (<%= gitinfo.local.branch.current.shortSHA %>) | github.com/getsentry/raven-js */
1+
/*! Raven.js <%= pkg.release %> (<%= gitinfo.local.branch.current.shortSHA %>) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit

0 commit comments

Comments
 (0)