couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject [07/12] couchdb commit: updated refs/heads/2128-autocomplete-section-name to 6e93561
Date Thu, 06 Mar 2014 21:32:14 GMT
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/2128-autocomplete-section-name
Commit: 18cf47aa36285b6f9c0ecfe5248db2c9acefa588
Parents: c59dab8
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Wed Mar 5 22:12:47 2014 +0100
Committer: suelockwood <deathbear@apache.org>
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 + "/**");
       }
     });


Mime
View raw message