Benoît Hubert 8 år sedan
förälder
incheckning
f8cb575330
3 ändrade filer med 6 tillägg och 5 borttagningar
  1. 2 2
      lib/ExampleStore.js
  2. 2 1
      lib/fsio.js
  3. 2 2
      sandboxApp.js

+ 2 - 2
lib/ExampleStore.js

@@ -27,8 +27,8 @@ ExampleStore.prototype.loadRepository = function(repoPath) {
   return scandirAsync(fullPath, ['.gitkeep', 'repo-config.json'])
   .then(examples => Promise.map(
     examples, example => loadExample(repoDescriptor, example)
-  ))
-  .then(() => console.log(this.repos[0]))
+  ));
+  // .then(() => console.log(this.repos[0]))
 };
 
 ExampleStore.prototype.loadExample = function(repo, slug) {

+ 2 - 1
lib/fsio.js

@@ -6,7 +6,8 @@ var path    = require('path');
 var Promise = require('bluebird');
 
 if(typeof fs.readdirAsync !== 'function') {
-  console.error("scandirAsync module requires promisifying fs with Bluebird's Promise.promisifyAll()");
+  // console.error("scandirAsync module requires promisifying fs with Bluebird's Promise.promisifyAll()");
+  Promise.promisifyAll(fs);
 }
 
 function scandirAsync(path, excludes) {

+ 2 - 2
sandboxApp.js

@@ -28,8 +28,8 @@ var {
 /**
  * Initialize example store
  */
-exStore.init()
-.then(() => console.log(exStore.getMenu()));
+exStore.init();
+// .then(() => console.log(exStore.getMenu()));
 
 
 /**