File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ var envify = require('envify/custom');
77var grunt = require ( 'grunt' ) ;
88var UglifyJS = require ( 'uglify-js' ) ;
99var uglifyify = require ( 'uglifyify' ) ;
10+ var _ = require ( 'lodash' ) ;
1011
1112var SIMPLE_TEMPLATE =
1213'/**\n\
@@ -65,7 +66,7 @@ var basic = {
6566 after : [ simpleBannerify ]
6667} ;
6768
68- var min = grunt . util . _ . merge ( { } , basic , {
69+ var min = _ . merge ( { } , basic , {
6970 outfile : './build/react.min.js' ,
7071 debug : false ,
7172 transforms : [ envify ( { NODE_ENV : 'production' } ) , uglifyify ] ,
@@ -94,7 +95,7 @@ var addons = {
9495 after : [ simpleBannerify ]
9596} ;
9697
97- var addonsMin = grunt . util . _ . merge ( { } , addons , {
98+ var addonsMin = _ . merge ( { } , addons , {
9899 outfile : './build/react-with-addons.min.js' ,
99100 debug : false ,
100101 transforms : [ envify ( { NODE_ENV : 'production' } ) , uglifyify ] ,
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ module.exports = function() {
4646 } ;
4747
4848 // TODO: make sure this works, test with this too
49- config . transforms . forEach ( bundle . transform , bundle ) ;
49+ config . transforms . forEach ( function ( transform ) {
50+ bundle . transform ( { } , transform ) ;
51+ } ) ;
5052
5153 // Actually bundle it up
5254 var _this = this ;
Original file line number Diff line number Diff line change 3939 },
4040 "devDependencies" : {
4141 "benchmark" : " ~1.0.0" ,
42- "browserify" : " ~2.36.1 " ,
43- "coverify" : " ~0.1.1 " ,
42+ "browserify" : " ~3.20.0 " ,
43+ "coverify" : " ~1.0.4 " ,
4444 "envify" : " ~1.0.1" ,
45- "es5-shim" : " ~2.1 .0" ,
46- "grunt" : " ~0.4.1 " ,
45+ "es5-shim" : " ~2.3 .0" ,
46+ "grunt" : " ~0.4.2 " ,
4747 "grunt-cli" : " ~0.1.9" ,
4848 "grunt-compare-size" : " ~0.4.0" ,
4949 "grunt-complexity" : " ~0.1.3" ,
5050 "grunt-contrib-clean" : " ~0.5.0" ,
51- "grunt-contrib-compress" : " ~0.5.1 " ,
52- "grunt-contrib-connect" : " ~0.5 .0" ,
53- "grunt-contrib-copy" : " ~0.4.1 " ,
54- "grunt-contrib-jshint" : " ~0.7.2 " ,
51+ "grunt-contrib-compress" : " ~0.6.0 " ,
52+ "grunt-contrib-connect" : " ~0.6 .0" ,
53+ "grunt-contrib-copy" : " ~0.5.0 " ,
54+ "grunt-contrib-jshint" : " ~0.8.0 " ,
5555 "gzip-js" : " ~0.3.2" ,
5656 "jasmine-tapreporter" : " ~0.2.2" ,
57+ "lodash" : " ~2.4.1" ,
5758 "microtime" : " ~0.5.1" ,
5859 "optimist" : " ~0.6.0" ,
5960 "phantomjs" : " ~1.9" ,
6465 "semver" : " ~2.2.1" ,
6566 "tmp" : " ~0.0.18" ,
6667 "uglify-js" : " ~2.4.0" ,
67- "uglifyify" : " ~1.0.1 " ,
68+ "uglifyify" : " ~1.1.0 " ,
6869 "wd" : " ~0.2.6"
6970 },
7071 "engines" : {
You can’t perform that action at this time.
0 commit comments