Skip to content

Commit 5c22a6e

Browse files
committed
enable ES6 syntax for profiling
just switch "main" of package.json to "dist/creed.es6.js" benchmarks will automatically use it
1 parent 14646ba commit 5c22a6e

File tree

13 files changed

+16
-15
lines changed

13 files changed

+16
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ experiments/
33
node_modules/
44
build/
55
coverage/
6+
perf/logs/

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "dist/creed.js",
66
"jsnext:main": "src/main.js",
77
"files": [
8-
"dist/creed.js"
8+
"dist/creed.js",
9+
"dist/creed.es6.js"
910
],
1011
"repository": {
1112
"type": "git",
@@ -25,7 +26,7 @@
2526
"async"
2627
],
2728
"scripts": {
28-
"build-dist": "mkdirp dist && rollup src/main.js | babel -m umd --module-id creed -o dist/creed.js --loose es6.classes",
29+
"build-dist": "mkdirp dist && rollup src/main.js -o dist/creed.js --format cjs && babel dist/creed.es6.js -o dist/creed.js -m umd --module-id creed --loose es6.classes",
2930
"build": "npm run build-dist && uglifyjs -c \"warnings=false\" -m -o dist/creed.min.js -- dist/creed.js",
3031
"preversion": "npm run build",
3132
"test-aplus": "promises-aplus-tests test/aplus.js --reporter dot",

perf/doxbee-sequential-errors/promises-creed-algebraic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global.useCreed = true;
22
global.useQ = false;
33
global.useBluebird = false;
44

5-
var creed = require('../../dist/creed');
5+
var creed = require('../..');
66

77
require('../lib/fakesP');
88

perf/doxbee-sequential-errors/promises-creed-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global.useCreed = true;
22
global.useQ = false;
33
global.useBluebird = false;
44

5-
var creed = require('../../dist/creed');
5+
var creed = require('../..');
66

77
require('../lib/fakesP');
88

perf/doxbee-sequential-errors/promises-creed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global.useCreed = true;
22
global.useQ = false;
33
global.useBluebird = false;
44

5-
var creed = require('../../dist/creed');
5+
var creed = require('../..');
66

77
require('../lib/fakesP');
88

perf/doxbee-sequential/promises-creed-algebraic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global.useCreed = true;
22
global.useQ = false;
33
global.useBluebird = false;
44

5-
var creed = require('../../dist/creed');
5+
var creed = require('../..');
66

77
require('../lib/fakesP');
88

perf/doxbee-sequential/promises-creed-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
global.useBluebird = false;
22
global.useQ = false;
33
global.useCreed = true;
4-
var creed = require('../../dist/creed');
4+
var creed = require('../..');
55
require('../lib/fakesP');
66

77
module.exports = creed.coroutine(function* upload(stream, idOrPath, tag, done) {

perf/doxbee-sequential/promises-creed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global.useCreed = true;
22
global.useQ = false;
33
global.useBluebird = false;
44

5-
var creed = require('../../dist/creed');
5+
var creed = require('../..');
66

77
require('../lib/fakesP');
88

perf/lib/fakesP.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ else if (global.useNative) {
8383
};
8484
}
8585
else if (global.useCreed) {
86-
var lifter = require('../../dist/creed').fromNode;
86+
var lifter = require('../..').fromNode;
8787
}
8888
else {
8989
var lifter = require('when/node').lift;

perf/madeup-parallel/promises-creed-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ global.useQ = false;
33
global.useWhen = false;
44

55
global.useCreed = true;
6-
var creed = require('../../dist/creed');
6+
var creed = require('../..');
77
require('../lib/fakesP');
88

99
module.exports = creed.coroutine(function* upload(stream, idOrPath, tag, done) {

0 commit comments

Comments
 (0)