Permalink
Browse files

Move modules to root folder

  • Loading branch information...
1 parent abc5a0f commit 9eccedf1aae92ed4fa48bea14f76842275d6bc89 @medikoo committed Apr 3, 2014
Showing with 43 additions and 39 deletions.
  1. +2 −0 .testignore
  2. 0 {lib → }/_ext.js
  3. +1 −1 benchmark/concurrent.js
  4. +1 −1 benchmark/one-after-another.js
  5. 0 {lib → }/deferred.js
  6. 0 {lib → }/ext/_process-arguments.js
  7. 0 {lib → }/ext/array/map.js
  8. 0 {lib → }/ext/array/reduce.js
  9. 0 {lib → }/ext/array/some.js
  10. 0 {lib → }/ext/function/call-async.js
  11. 0 {lib → }/ext/function/delay.js
  12. 0 {lib → }/ext/function/gate.js
  13. 0 {lib → }/ext/function/promisify-sync.js
  14. 0 {lib → }/ext/function/promisify.js
  15. 0 {lib → }/ext/promise/_array.js
  16. 0 {lib → }/ext/promise/aside.js
  17. 0 {lib → }/ext/promise/catch.js
  18. 0 {lib → }/ext/promise/cb.js
  19. 0 {lib → }/ext/promise/finally.js
  20. 0 {lib → }/ext/promise/get.js
  21. 0 {lib → }/ext/promise/invoke-async.js
  22. 0 {lib → }/ext/promise/invoke.js
  23. 0 {lib → }/ext/promise/map.js
  24. 0 {lib → }/ext/promise/match.js
  25. 0 {lib → }/ext/promise/reduce.js
  26. 0 {lib → }/ext/promise/some.js
  27. 0 {lib → }/index.js
  28. 0 {lib → }/invoke-async.js
  29. 0 {lib → }/is-promise.js
  30. 0 {lib → }/monitor.js
  31. 0 {lib → }/profiler.js
  32. 0 {lib → }/reject.js
  33. +1 −1 test/_ext.js
  34. +2 −2 test/deferred.js
  35. +2 −2 test/ext/_process-arguments.js
  36. +2 −2 test/ext/array/map.js
  37. +2 −2 test/ext/array/reduce.js
  38. +2 −2 test/ext/array/some.js
  39. +1 −1 test/ext/function/call-async.js
  40. +1 −1 test/ext/function/gate.js
  41. +1 −1 test/ext/function/promisify-sync.js
  42. +1 −1 test/ext/function/promisify.js
  43. +3 −3 test/ext/promise/_array.js
  44. +1 −1 test/ext/promise/aside.js
  45. +2 −2 test/ext/promise/catch.js
  46. +1 −1 test/ext/promise/cb.js
  47. +1 −1 test/ext/promise/finally.js
  48. +1 −1 test/ext/promise/get.js
  49. +1 −1 test/ext/promise/invoke-async.js
  50. +1 −1 test/ext/promise/invoke.js
  51. +1 −1 test/ext/promise/map.js
  52. +1 −1 test/ext/promise/match.js
  53. +1 −1 test/ext/promise/reduce.js
  54. +1 −1 test/ext/promise/some.js
  55. +3 −1 test/index.js
  56. +1 −1 test/invoke-async.js
  57. +1 −1 test/is-promise.js
  58. +1 −1 test/monitor.js
  59. +1 −1 test/profiler.js
  60. +1 −1 test/reject.js
  61. +1 −1 test/valid-promise.js
  62. 0 {lib → }/valid-promise.js
View
@@ -0,0 +1,2 @@
+/benchmark
+/examples
View
File renamed without changes.
View
@@ -14,7 +14,7 @@ var generate = require('es5-ext/lib/Array/generate')
, Bluebird = require('bluebird')
, kew = require('kew')
, when = require('when')
- , deferred = require('../lib')
+ , deferred = require('../')
, now = Date.now
, Deferred = deferred.Deferred
@@ -14,7 +14,7 @@ var forEach = require('es5-ext/lib/Object/for-each')
, Bluebird = require('bluebird')
, kew = require('kew')
, when = require('when')
- , deferred = require('../lib')
+ , deferred = require('../')
, now = Date.now
, Deferred = deferred.Deferred, promisify = deferred.promisify
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../lib/deferred')
+var deferred = require('../deferred')
, x = {}, y = {}, e = new Error("Error");
View
@@ -1,7 +1,7 @@
'use strict';
-var isPromise = require('../lib/is-promise')
- , reject = require('../lib/reject')
+var isPromise = require('../is-promise')
+ , reject = require('../reject')
, x = {};
@@ -1,7 +1,7 @@
'use strict';
-var isPromise = require('../../lib/is-promise')
- , deferred = require('../../lib/deferred');
+var isPromise = require('../../is-promise')
+ , deferred = require('../../deferred');
module.exports = function (t) {
var x = {}, y = {}, e = new Error();
View
@@ -1,7 +1,7 @@
'use strict';
-var deferred = require('../../../lib/deferred')
- , reject = require('../../../lib/reject');
+var deferred = require('../../../deferred')
+ , reject = require('../../../reject');
module.exports = function (t) {
var x = {}, y = {}, z = {}, e = new Error("Error");
View
@@ -1,7 +1,7 @@
'use strict';
-var deferred = require('../../../lib/deferred')
- , reject = require('../../../lib/reject');
+var deferred = require('../../../deferred')
+ , reject = require('../../../reject');
module.exports = function (t) {
var x = {}, y = {}, z = {}, e = new Error("Error"), e2 = new Error("Error2");
View
@@ -1,7 +1,7 @@
'use strict';
-var deferred = require('../../../lib/deferred')
- , isPromise = require('../../../lib/is-promise');
+var deferred = require('../../../deferred')
+ , isPromise = require('../../../is-promise');
module.exports = function (t, a) {
var x = {}, y, z = 0, w;
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t) {
var u = {}, x = {}, y = {}, z = {};
@@ -1,7 +1,7 @@
'use strict';
var toArray = require('es5-ext/lib/Array/from')
- , deferred = require('../../../lib/deferred');
+ , deferred = require('../../../deferred');
module.exports = function (t) {
var fn, gfn, x = {}, y = {}, z = {}, args, dx, dy, dz, hz, resolved, released;
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t) {
var u = {}, x = {}, y = {}, z = {};
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t) {
var u = {}, x = {}, y = {}, z = {};
@@ -1,10 +1,10 @@
'use strict';
var isError = require('es5-ext/lib/Error/is-error')
- , deferred = require('../../../lib/deferred');
+ , deferred = require('../../../deferred');
module.exports = function (t) {
- t('map', require('../../../lib/ext/array/map'));
+ t('map', require('../../../ext/array/map'));
return {
"Direct": function (a) {
@@ -24,7 +24,7 @@ module.exports = function (t) {
def.resolve([deferred(1), deferred(2), 3]);
},
"Error": function (a) {
- t('reduce', require('../../../lib/ext/array/reduce'));
+ t('reduce', require('../../../ext/array/reduce'));
deferred([]).reduce(function () {})(a.never, function (err) {
a(isError(err), true, "Error");
}).end();
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t, a) {
var x = {}, d = deferred(), p = d.promise, invoked = false;
@@ -1,7 +1,7 @@
'use strict';
-var deferred = require('../../../lib/deferred')
- , isPromise = require('../../../lib/is-promise');
+var deferred = require('../../../deferred')
+ , isPromise = require('../../../is-promise');
module.exports = function (t, a) {
var x = {}, y = {}, d = deferred(), p = d.promise, np, invoked = false, val;
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function () {
return {
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t, a) {
var x = {}, d = deferred(), p = d.promise, invoked = false;
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = {
"Deferred": function (a) {
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function () {
return {
@@ -15,7 +15,7 @@ module.exports = function (t, a, d) {
}).end(d, d);
};
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function () {
return {
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t, a, d) {
deferred([deferred(1), deferred(2), 3]).map(function (res) {
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = {
"Deferred": function (a) {
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t, a, d) {
deferred([deferred(2), deferred(3), 4]).reduce(function (arg1, arg2) {
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../../../lib/deferred');
+var deferred = require('../../../deferred');
module.exports = function (t, a, d) {
var count = 0;
View
@@ -6,11 +6,13 @@ var isFunction = require('es5-ext/lib/Function/is-function')
, readdir = require('fs').readdir
, indexTest = require('tad/lib/utils/index-test')
- , dir = path.dirname(__dirname) + '/lib';
+ , dir = path.dirname(__dirname);
module.exports = {
"": indexTest(indexTest.readDir(dir)(function (o) {
+ delete o.benchmark;
delete o.deferred;
+ delete o.examples;
delete o.ext;
delete o.promise;
delete o.profiler;
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../lib/deferred');
+var deferred = require('../deferred');
module.exports = function (t) {
var u = {}, x = {}, y = {}, z = {};
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../lib/deferred');
+var deferred = require('../deferred');
module.exports = function (t, a) {
a(t(deferred().resolve()), true, "Deferred promise is promise");
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../lib/deferred');
+var deferred = require('../deferred');
module.exports = function (t, a, d) {
var invoked, df, cachet, cachec;
View
@@ -1,7 +1,7 @@
'use strict';
var keys = Object.keys
- , deferred = require('../lib/deferred');
+ , deferred = require('../deferred');
module.exports = function (t, a) {
var d1, d2, data;
View
@@ -1,6 +1,6 @@
'use strict';
-var isPromise = require('../lib/is-promise');
+var isPromise = require('../is-promise');
module.exports = function (t, a) {
var rejected = t('elo');
View
@@ -1,6 +1,6 @@
'use strict';
-var deferred = require('../lib/deferred');
+var deferred = require('../deferred');
module.exports = function (t, a) {
var def = deferred();
File renamed without changes.

0 comments on commit 9eccedf

Please sign in to comment.