Replace underscore with lodash

Replace 2 uses of underscore and 1 use of a lodash submodule with full
lodash module.
This commit is contained in:
Ryan Graham 2014-12-02 22:10:50 -08:00
parent 8da44e69dd
commit e1f7c592a1
4 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var commondir = require('commondir'); var commondir = require('commondir');
var cloneDeep = require('lodash.clonedeep'); var cloneDeep = require('lodash').cloneDeep;
/** /**
* Add boot instructions to a browserify bundler. * Add boot instructions to a browserify bundler.

View File

@ -1,5 +1,5 @@
var assert = require('assert'); var assert = require('assert');
var cloneDeep = require('lodash.clonedeep'); var cloneDeep = require('lodash').cloneDeep;
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var toposort = require('toposort'); var toposort = require('toposort');

View File

@ -1,5 +1,5 @@
var assert = require('assert'); var assert = require('assert');
var _ = require('underscore'); var _ = require('lodash');
var semver = require('semver'); var semver = require('semver');
var debug = require('debug')('loopback:boot:executor'); var debug = require('debug')('loopback:boot:executor');
var async = require('async'); var async = require('async');

View File

@ -26,10 +26,9 @@
"async": "~0.9.0", "async": "~0.9.0",
"commondir": "0.0.1", "commondir": "0.0.1",
"debug": "^2.0.0", "debug": "^2.0.0",
"lodash.clonedeep": "^2.4.1", "lodash": "^2.4.1",
"semver": "^4.1.0", "semver": "^4.1.0",
"toposort": "^0.2.10", "toposort": "^0.2.10"
"underscore": "^1.6.0"
}, },
"devDependencies": { "devDependencies": {
"browserify": "^4.1.8", "browserify": "^4.1.8",