Skip to content

Commit df8d092

Browse files
committed
Merge pull request facebook#924 from zpao/update-deps
Update build dependencies
2 parents ea711f1 + ca930ef commit df8d092

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

grunt/config/browserify.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var envify = require('envify/custom');
77
var grunt = require('grunt');
88
var UglifyJS = require('uglify-js');
99
var uglifyify = require('uglifyify');
10+
var _ = require('lodash');
1011

1112
var 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],

grunt/tasks/browserify.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,22 @@
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",
@@ -64,7 +65,7 @@
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": {

0 commit comments

Comments
 (0)