diff options
author | Robert Kowalski <rok@kowalski.gd> | 2014-03-05 22:12:47 +0100 |
---|---|---|
committer | suelockwood <deathbear@apache.org> | 2014-03-06 10:11:50 -0500 |
commit | 18cf47aa36285b6f9c0ecfe5248db2c9acefa588 (patch) | |
tree | 629f9e40ac6211cea50851894842db6e7bb78f1d | |
parent | c59dab8d508fd3871a145ef099fd349bb9bc7064 (diff) | |
download | couchdb-18cf47aa36285b6f9c0ecfe5248db2c9acefa588.tar.gz |
Fauxton: Gruntfile fix more path.existsSync
-rw-r--r-- | src/fauxton/Gruntfile.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js index c087afac9..348fa450d 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 + "/**"); } }); |