From 86d1420ae9728b88ff49fbeaf592af2446790a91 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Tue, 9 Sep 2014 23:07:54 -0700 Subject: [PATCH] Add provify transform This transform will replace all instances of "tap" or "tape" require statements in a script with require('prova'). This closes #2. --- lib/browserify-transforms.js | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/browserify-transforms.js b/lib/browserify-transforms.js index f2342af..20003da 100644 --- a/lib/browserify-transforms.js +++ b/lib/browserify-transforms.js @@ -23,6 +23,8 @@ module.exports = function (files, command) { ret = watchify(files); } + ret.transform('provify'); + if (transform) ret.transform(transformMap[ext]); if (command.transform && command.transform.length) { diff --git a/package.json b/package.json index b5831ec..81e02b1 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,8 @@ "dom-event": "0.0.0", "component-delegate": "^0.2.2", "single-line-log": "^0.4.1", - "tape": "^3.0.0" + "tape": "^3.0.0", + "provify": "^0.1.2" }, "keywords": [ "testing",