Repository: couchdb Updated Branches: refs/heads/2041-update-ibrowse 948e7d9a6 -> b63f393b8 (forced update)
Fauxton: Gruntfile fix more path.existsSync Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/18cf47aa Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/18cf47aa Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/18cf47aa Branch: refs/heads/2041-update-ibrowse Commit: 18cf47aa36285b6f9c0ecfe5248db2c9acefa588 Parents: c59dab8 Author: Robert Kowalski <[email protected]> Authored: Wed Mar 5 22:12:47 2014 +0100 Committer: suelockwood <[email protected]> Committed: Thu Mar 6 10:11:50 2014 -0500 ---------------------------------------------------------------------- src/fauxton/Gruntfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/18cf47aa/src/fauxton/Gruntfile.js ---------------------------------------------------------------------- diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js index c087afa..348fa45 100644 --- a/src/fauxton/Gruntfile.js +++ b/src/fauxton/Gruntfile.js @@ -18,7 +18,7 @@ module.exports = function(grunt) { var helper = require('./tasks/helper').init(grunt), _ = grunt.util._, - path = require('path'); + fs = require('fs'); var couch_config = function () { @@ -73,7 +73,7 @@ module.exports = function(grunt) { // Less files from addons var root = addon.path || "app/addons/" + addon.name; var lessPath = root + "/assets/less"; - if(path.existsSync(lessPath)){ + if(fs.existsSync(lessPath)){ // .less files exist for this addon theAssets.less.paths.push(lessPath); theAssets.less.files["dist/debug/css/" + addon.name + ".css"] = @@ -83,7 +83,7 @@ module.exports = function(grunt) { // Images root = addon.path || "app/addons/" + addon.name; var imgPath = root + "/assets/img"; - if(path.existsSync(imgPath)){ + if(fs.existsSync(imgPath)){ theAssets.img.push(imgPath + "/**"); } });
