Skip to content

Commit 02a9254

Browse files
committed
0.1.0 release
1 parent a1735a5 commit 02a9254

File tree

6 files changed

+37
-1
lines changed

6 files changed

+37
-1
lines changed

AUTHORS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
####Corporate Copyright Statements
2+
-----
3+
4+
Copyright (c) 2015-present TyphonRT Inc. [@typhonrt](https://github.com/typhonrt)
5+
6+
####Contributors
7+
-----
8+
9+
Michael Leahy [@typhonrt](https://github.com/typhonrt)

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 0.1.0 (2016-03-13)
2+
- Initial stable release.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typhonjs-npm-scripts-test-mocha",
3-
"version": "0.0.13",
3+
"version": "0.1.0",
44
"homepage": "https://github.com/typhonjs-node-npm-scripts/typhonjs-npm-scripts-test-mocha",
55
"description": "Provides NPM scripts for testing projects using Istanbul and Mocha for all TyphonJS NPM modules and beyond.",
66
"license": "MPL-2.0",

scripts/mocha-istanbul-report.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var fs = require('fs-extra');
3131
var stripJsonComments = require('strip-json-comments');
3232

3333
// Verify that `.npmscriptrc` exists.
34+
/* istanbul ignore next */
3435
try
3536
{
3637
if (!fs.statSync('./.npmscriptrc').isFile())
@@ -44,6 +45,7 @@ catch (err)
4445
}
4546

4647
// Verify that `Istanbul` exists.
48+
/* istanbul ignore next */
4749
try
4850
{
4951
if (!fs.statSync('./node_modules/.bin/istanbul').isFile())
@@ -57,6 +59,7 @@ catch (err)
5759
}
5860

5961
// Verify that `Mocha` exists.
62+
/* istanbul ignore next */
6063
try
6164
{
6265
if (!fs.statSync('./node_modules/.bin/mocha').isFile())
@@ -73,6 +76,7 @@ catch (err)
7376
var configInfo = JSON.parse(stripJsonComments(fs.readFileSync('./.npmscriptrc', 'utf-8')));
7477

7578
// Verify that mocha entry is an object.
79+
/* istanbul ignore if */
7680
if (typeof configInfo.test !== 'object')
7781
{
7882
throw new Error(
@@ -90,6 +94,7 @@ if (process.env.TRAVIS && typeof testConfig.travis === 'object')
9094
}
9195

9296
// Verify that Istanbul entry is an object.
97+
/* istanbul ignore if */
9398
if (typeof testConfig.istanbul !== 'object')
9499
{
95100
throw new Error(
@@ -98,6 +103,7 @@ if (typeof testConfig.istanbul !== 'object')
98103
}
99104

100105
// Verify that Istanbul command entry is a string.
106+
/* istanbul ignore if */
101107
if (typeof testConfig.istanbul.command !== 'string')
102108
{
103109
throw new Error(
@@ -110,6 +116,7 @@ var istanbulOptions = testConfig.istanbul.command;
110116
// Add any Istanbul optional parameters.
111117
if (typeof testConfig.istanbul.options !== 'undefined')
112118
{
119+
/* istanbul ignore if */
113120
if (!Array.isArray(testConfig.istanbul.options))
114121
{
115122
throw new Error(
@@ -121,6 +128,7 @@ if (typeof testConfig.istanbul.options !== 'undefined')
121128
}
122129

123130
// Verify that mocha entry is an object.
131+
/* istanbul ignore if */
124132
if (typeof testConfig.mocha !== 'object')
125133
{
126134
throw new Error(
@@ -129,6 +137,7 @@ if (typeof testConfig.mocha !== 'object')
129137
}
130138

131139
// Verify that source entry is a string.
140+
/* istanbul ignore if */
132141
if (typeof testConfig.mocha.source !== 'string')
133142
{
134143
throw new Error(
@@ -142,6 +151,7 @@ var mochaOptions = '';
142151
// Add any optional parameters.
143152
if (typeof testConfig.mocha.options !== 'undefined')
144153
{
154+
/* istanbul ignore if */
145155
if (!Array.isArray(testConfig.mocha.options))
146156
{
147157
throw new Error(

scripts/mocha-istanbul.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var fs = require('fs-extra');
2727
var stripJsonComments = require('strip-json-comments');
2828

2929
// Verify that `.npmscriptrc` exists.
30+
/* istanbul ignore next */
3031
try
3132
{
3233
if (!fs.statSync('./.npmscriptrc').isFile())
@@ -40,6 +41,7 @@ catch (err)
4041
}
4142

4243
// Verify that `Istanbul` exists.
44+
/* istanbul ignore next */
4345
try
4446
{
4547
if (!fs.statSync('./node_modules/.bin/istanbul').isFile())
@@ -53,6 +55,7 @@ catch (err)
5355
}
5456

5557
// Verify that `Mocha` exists.
58+
/* istanbul ignore next */
5659
try
5760
{
5861
if (!fs.statSync('./node_modules/.bin/mocha').isFile())
@@ -69,6 +72,7 @@ catch (err)
6972
var configInfo = JSON.parse(stripJsonComments(fs.readFileSync('./.npmscriptrc', 'utf-8')));
7073

7174
// Verify that mocha entry is an object.
75+
/* istanbul ignore if */
7276
if (typeof configInfo.test !== 'object')
7377
{
7478
throw new Error(
@@ -86,6 +90,7 @@ if (process.env.TRAVIS && typeof testConfig.travis === 'object')
8690
}
8791

8892
// Verify that Istanbul entry is an object.
93+
/* istanbul ignore if */
8994
if (typeof testConfig.istanbul !== 'object')
9095
{
9196
throw new Error(
@@ -94,6 +99,7 @@ if (typeof testConfig.istanbul !== 'object')
9499
}
95100

96101
// Verify that Istanbul command entry is a string.
102+
/* istanbul ignore if */
97103
if (typeof testConfig.istanbul.command !== 'string')
98104
{
99105
throw new Error(
@@ -106,6 +112,7 @@ var istanbulOptions = testConfig.istanbul.command;
106112
// Add any Istanbul optional parameters.
107113
if (typeof testConfig.istanbul.options !== 'undefined')
108114
{
115+
/* istanbul ignore if */
109116
if (!Array.isArray(testConfig.istanbul.options))
110117
{
111118
throw new Error(
@@ -117,6 +124,7 @@ if (typeof testConfig.istanbul.options !== 'undefined')
117124
}
118125

119126
// Verify that mocha entry is an object.
127+
/* istanbul ignore if */
120128
if (typeof testConfig.mocha !== 'object')
121129
{
122130
throw new Error(
@@ -125,6 +133,7 @@ if (typeof testConfig.mocha !== 'object')
125133
}
126134

127135
// Verify that source entry is a string.
136+
/* istanbul ignore if */
128137
if (typeof testConfig.mocha.source !== 'string')
129138
{
130139
throw new Error(
@@ -138,6 +147,7 @@ var mochaOptions = '';
138147
// Add any optional parameters.
139148
if (typeof testConfig.mocha.options !== 'undefined')
140149
{
150+
/* istanbul ignore if */
141151
if (!Array.isArray(testConfig.mocha.options))
142152
{
143153
throw new Error(

scripts/mocha.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var fs = require('fs');
1616
var stripJsonComments = require('strip-json-comments');
1717

1818
// Verify that `.npmscriptrc` exists.
19+
/* istanbul ignore next */
1920
try
2021
{
2122
if (!fs.statSync('./.npmscriptrc').isFile())
@@ -29,6 +30,7 @@ catch (err)
2930
}
3031

3132
// Verify that `Mocha` exists.
33+
/* istanbul ignore next */
3234
try
3335
{
3436
if (!fs.statSync('./node_modules/.bin/mocha').isFile())
@@ -54,13 +56,15 @@ if (typeof configInfo.test !== 'object')
5456
var testConfig = configInfo.test;
5557

5658
// Verify that mocha entry is an object.
59+
/* istanbul ignore if */
5760
if (typeof testConfig.mocha !== 'object')
5861
{
5962
throw new Error(
6063
"TyphonJS NPM script (test) error: 'test.mocha' entry is not an object or is missing in '.npmscriptrc'.");
6164
}
6265

6366
// Verify that source entry is a string.
67+
/* istanbul ignore if */
6468
if (typeof testConfig.mocha.source !== 'string')
6569
{
6670
throw new Error(
@@ -73,6 +77,7 @@ var exec = './node_modules/.bin/mocha';
7377
// Add any optional parameters.
7478
if (typeof testConfig.mocha.options !== 'undefined')
7579
{
80+
/* istanbul ignore if */
7681
if (!Array.isArray(testConfig.mocha.options))
7782
{
7883
throw new Error(

0 commit comments

Comments
 (0)