File tree 3 files changed +7
-2
lines changed 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
var proxyquire = require ( 'proxyquireify' ) ;
2
+ var versionify = require ( 'browserify-versionify' ) ;
2
3
3
4
module . exports = function ( grunt ) {
4
5
"use strict" ;
@@ -92,7 +93,9 @@ module.exports = function(grunt) {
92
93
browserifyOptions : {
93
94
banner : grunt . file . read ( 'template/_copyright.js' ) ,
94
95
standalone : 'Raven' // umd
95
- }
96
+
97
+ } ,
98
+ transform : [ versionify ]
96
99
} ,
97
100
core : {
98
101
src : 'src/singleton.js' ,
@@ -102,6 +105,7 @@ module.exports = function(grunt) {
102
105
files : pluginConcatFiles ,
103
106
options : {
104
107
transform : [
108
+ [ versionify ] ,
105
109
[ new AddPluginBrowserifyTransformer ( ) ]
106
110
]
107
111
}
Original file line number Diff line number Diff line change 13
13
},
14
14
"main" : " src/singleton.js" ,
15
15
"devDependencies" : {
16
+ "browserify-versionify" : " ^1.0.6" ,
16
17
"chai" : " 2.3.0" ,
17
18
"grunt" : " ^0.4.5" ,
18
19
"grunt-browserify" : " ^4.0.1" ,
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function Raven() {
68
68
*/
69
69
70
70
Raven . prototype = {
71
- VERSION : '<%= pkg.version %> ' ,
71
+ VERSION : '__VERSION__ ' ,
72
72
73
73
debug : true ,
74
74
You can’t perform that action at this time.
0 commit comments