Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
PLTFRS-5643: Migrate to lodash (#7)
Browse files Browse the repository at this point in the history
* underscore(_.each) -> lodash(_.forEach)
* Lodash Big Up
  • Loading branch information
KINFOO authored Oct 13, 2016
1 parent de3090d commit 4f1469c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"express": "~4.14.0",
"list-directory-contents": "0.0.3",
"lodash": "^3.2.0",
"lodash": "^4.16.0",
"node-tech-logger": "git://github.com/AirVantage/node-tech-logger.git#3.x"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions techStatic.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var serveStaticAssets = function(app, opts) {

app.use(resourcesUrlBase, staticMw(distDir, expressStaticCacheOptions));

_.each(dirs, function(dir) {
_.forEach(dirs, function(dir) {
var publicDir = path.join(dir, "public");
logger.debug("[tech-static] Serving non optimized resources " + resourcesDebugUrlBase + " from folder:", publicDir);
printDir(publicDir);
Expand All @@ -125,7 +125,7 @@ var serveStaticAssets = function(app, opts) {
printDir(cssDir);
app.use(resourcesDebugUrlBase + "/css", staticMw(cssDir, expressStaticCacheOptions));
} else {
_.each(dirs, function(dir) {
_.forEach(dirs, function(dir) {
var publicDir = path.join(dir, "public");
logger.debug("[tech-static] Serving non optimized resources from folder:", publicDir);
app.use(resourcesUrlBase, staticMw(publicDir, expressStaticCacheOptions));
Expand Down

0 comments on commit 4f1469c

Please sign in to comment.