From 00ac04e986284ff11da5a7dba9e8b0817d8ba4dc Mon Sep 17 00:00:00 2001 From: Mathias Hoffmann Date: Tue, 17 Oct 2017 16:00:10 +0200 Subject: [PATCH] add support for testOnly flag --- README.md | 7 +++++++ package.js | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5fa60a..f93740f 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.org/practicalmeteor/meteor-chai.svg?branch=master)](https://travis-ci.org/practicalmeteor/meteor-chai) + ## Overview The Chai Assertion Library, packaged for meteor. @@ -8,6 +9,7 @@ The Chai Assertion Library, packaged for meteor. 2.1.0 ## Exports + * chai * assert * expect @@ -29,6 +31,10 @@ Server: Meteor.settings.chai.includeStack Client: Meteor.settings.public.chai.includeStack +## Production environment + +If you don't need to use this package in production environment, you can define a process variable `METEOR_CHAI_TEST_ONLY` set to `true`. + ## Changelog [CHANGELOG](https://github.com/practicalmeteor/meteor-chai/blob/master/CHANGELOG.md) @@ -38,4 +44,5 @@ Client: Meteor.settings.public.chai.includeStack Please visit the [chaijs](http://chaijs.com/) homepage. ## License + The chaijs license is MIT. This meteor package too. diff --git a/package.js b/package.js index fa05fa5..94eebd1 100755 --- a/package.js +++ b/package.js @@ -2,7 +2,8 @@ Package.describe({ name: "practicalmeteor:chai", summary: "The Chai Assertion Library, v2.1.0", version: "2.1.0_1", - git: "https://github.com/practicalmeteor/meteor-chai.git" + git: "https://github.com/practicalmeteor/meteor-chai.git", + testOnly: process.env.METEOR_CHAI_TEST_ONLY ? process.env.METEOR_CHAI_TEST_ONLY : false });