-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
390 lines (390 loc) · 20.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
{
"_args": [
[
{
"raw": "istanbul@https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"scope": null,
"escapedName": "istanbul",
"name": "istanbul",
"rawSpec": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"spec": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "istanbul@https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"_id": "istanbul@0.4.5",
"_inCache": true,
"_location": "/firebase-admin/istanbul",
"_phantomChildren": {
"has-flag": "1.0.0",
"inflight": "1.0.6",
"inherits": "2.0.3",
"minimatch": "3.0.4",
"once": "1.4.0",
"path-is-absolute": "1.0.1"
},
"_requested": {
"raw": "istanbul@https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"scope": null,
"escapedName": "istanbul",
"name": "istanbul",
"rawSpec": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"spec": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/gulp-istanbul",
"/firebase-admin/istanbul-threshold-checker"
],
"_resolved": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"_shasum": "65c7d73d4c4da84d4f3ac310b918fb0b8033733b",
"_shrinkwrap": null,
"_spec": "istanbul@https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Krishnan Anantheswaran",
"email": "kananthmail-github@yahoo.com"
},
"bin": {
"istanbul": "./lib/cli.js"
},
"bugs": {
"url": "https://github.com/gotwarlost/istanbul/issues"
},
"contributors": [
{
"name": "Reid Burke",
"email": "me@reidburke.com"
},
{
"name": "Martin Cooper",
"email": "mfncooper@gmail.com"
},
{
"name": "Dav Glass",
"email": "davglass@gmail.com"
},
{
"name": "nowamasa",
"email": "nowamasa@gmail.com"
},
{
"name": "Miller Medeiros @millermedeiros",
"email": "contact@millermedeiros.com"
},
{
"name": "Daniel Perez Alvarez @unindented",
"email": "unindented@gmail.com"
},
{
"name": "Mathias Bynens @mathiasbynens",
"email": "mathias@qiwi.be"
},
{
"name": "Nathan Brown @nbrownus",
"email": "nate@betable.com"
},
{
"name": "Brian Ng @existentialism",
"email": "bng412@gmail.com"
},
{
"name": "John Morrison @jrgm"
},
{
"name": "Tomaz Muraus @kami",
"email": "tomaz+github@tomaz.me"
},
{
"name": "Joe @jhansche",
"email": "jhansche@meetme.com"
},
{
"name": "Vojta Jina @vojtajina",
"email": "vojta.jina@gmail.com"
},
{
"name": "Dmitry Shirokov @runk",
"email": "deadrunk@gmail.com"
},
{
"name": "Chris Gladd @chrisgladd"
},
{
"name": "Sergey Belov",
"email": "peimei@ya.ru"
},
{
"name": "porneL @pornel",
"email": "pornel@pornel.net"
},
{
"name": "@asifrc"
},
{
"name": "Gergely Nemeth @gergelyke"
},
{
"name": "@bixdeng"
},
{
"name": "@mpderbec"
},
{
"name": "@jxiaodev"
},
{
"name": "Arpad Borsos @Swatinem",
"email": "arpad.borsos@googlemail.com"
},
{
"name": "Ariya Hidayat @ariya"
},
{
"name": "@markyen"
},
{
"name": "Sam Saccone @samccone",
"email": "sam@samx.it"
},
{
"name": "Jason Cheatham @jason0x43"
},
{
"name": "@smikes"
},
{
"name": "Yasyf Mohamedali @yasyf",
"email": "yasyfm@gmail.com"
},
{
"name": "Fabio Crisci @piuccio",
"email": "piuccio@gmail.com"
},
{
"name": "Ryan Roemer @ryan-roemer",
"email": "ryan@loose-bits.com"
},
{
"name": "Douglas Christopher Wilson @dougwilson"
},
{
"name": "Gustav Nikolaj @gustavnikolaj",
"email": "gustavnikolaj@gmail.com"
},
{
"name": "Denis Sokolov @denis-sokolov",
"email": "denis@sokolov.cc"
},
{
"name": "Yann Mainier @ymainier"
},
{
"name": "Yiyu He @dead-horse",
"email": "heyiyu.deadhorse@gmail.com"
},
{
"name": "Andrew Kelley @andrewrk",
"email": "superjoe30@gmail.com"
},
{
"name": "Will LaBranche @wlabranche",
"email": "will@labranche.io"
},
{
"name": "Mathieu Naouache @math-nao",
"email": "math.nao@outlook.com"
},
{
"name": "Ron Korving @ronkorving"
},
{
"name": "Rob McGuire-Dale @robatron",
"email": "rob.mcguiredale@gmail.com"
},
{
"name": "Justin Johnson @booleangate"
},
{
"name": "Juan Gabriel Jiménez @juangabreil",
"email": "juangabreil@gmail.com"
},
{
"name": "Daniel Sabelnikov @dragn",
"email": "dsabelnikov@gmail.com"
},
{
"name": "Tony Lukasavage @tonylukasavage",
"email": "anthony.lukasavage@gmail.com"
},
{
"name": "Simon Ramsay @nexus-uw"
},
{
"name": "Dominykas Blyžė @dominykas"
},
{
"name": "Seth Pollack @sethpollack"
},
{
"name": "Benjamin E. Coe @bcoe",
"email": "ben@npmjs.com"
},
{
"name": "Yuren Ju",
"email": "yurenju@gmail.com"
},
{
"name": "Aleksey Verkholantsev",
"email": "alex-vee@yandex-team.ru"
},
{
"name": "Ed S",
"email": "ejsanders@gmail.com"
},
{
"name": "Mordy Tikotzky",
"email": "mordytk@gmail.com"
},
{
"name": "Haoliang Gao @popomore",
"email": "sakura9515@gmail.com"
},
{
"name": "Roderick Hsiao @roderickhsiao"
},
{
"name": "Nikita Gusakov @nkt"
},
{
"name": "Alex Dunphy @alexdunphy",
"email": "alexanderdunphy@gmail.com"
},
{
"name": "Artemy Tregubenko @arty-name",
"email": "me@arty.name"
},
{
"name": "Arye Lukashevski @aryelu"
},
{
"name": "@sterlinghw"
},
{
"name": "Gord Tanner",
"email": "gord@bithound.io"
},
{
"name": "Tom MacWright @tmcw",
"email": "tom@macwright.org"
},
{
"name": "Kitson Kelly @kitsonk"
},
{
"name": "@asa-git"
},
{
"name": "@RoCat"
},
{
"name": "Ian Page Hands @iphands",
"email": "iphands@gmail.com"
},
{
"name": "Eddie Gurnee @pegurnee"
},
{
"name": "Kevin Decker @kpdecker",
"email": "kpdecker@gmail.com"
},
{
"name": "isaacs @isaacs",
"email": "i@izs.me"
},
{
"name": "Steve Gray @steve-gray"
},
{
"name": "Prayag Verma @pra85",
"email": "prayag.verma@gmail.com"
},
{
"name": "Abe Fehr @abejfehr",
"email": "abe.fehr@gmail.com"
},
{
"name": "Brian Woodward @doowb",
"email": "brian.woodward@gmail.com"
},
{
"name": "@Victorystick"
},
{
"name": "@inversion"
},
{
"name": "@JamesMGreene"
},
{
"name": "@ChALkeR"
},
{
"name": "@graingert"
}
],
"dependencies": {
"abbrev": "1.0.x",
"async": "1.x",
"escodegen": "1.8.x",
"esprima": "2.7.x",
"glob": "^5.0.15",
"handlebars": "^4.0.1",
"js-yaml": "3.x",
"mkdirp": "0.5.x",
"nopt": "3.x",
"once": "1.x",
"resolve": "1.1.x",
"supports-color": "^3.1.0",
"which": "^1.1.1",
"wordwrap": "^1.0.0"
},
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale",
"devDependencies": {
"coveralls": "2.x",
"jshint": "^2.8.0",
"nodeunit": "0.9.x",
"requirejs": "2.x",
"rimraf": "^2.4.3"
},
"files": [
"index.js",
"lib/"
],
"homepage": "https://github.com/gotwarlost/istanbul#readme",
"keywords": [
"coverage",
"code coverage",
"JS code coverage",
"JS coverage"
],
"license": "BSD-3-Clause",
"name": "istanbul",
"optionalDependencies": {},
"readme": "## Istanbul - a JS code coverage tool written in JS\n\n[![Build Status](https://secure.travis-ci.org/gotwarlost/istanbul.svg?branch=master)](http://travis-ci.org/gotwarlost/istanbul)\n[![Dependency Status](https://gemnasium.com/gotwarlost/istanbul.svg)](https://gemnasium.com/gotwarlost/istanbul)\n[![Coverage Status](https://img.shields.io/coveralls/gotwarlost/istanbul.svg)](https://coveralls.io/r/gotwarlost/istanbul?branch=master)\n[![bitHound Score](https://www.bithound.io/github/gotwarlost/istanbul/badges/score.svg)](https://www.bithound.io/github/gotwarlost/istanbul)\n\n[![NPM](https://nodei.co/npm/istanbul.png?downloads=true)](https://nodei.co/npm/istanbul/)\n\n**New** `v0.4.0` now has beautiful HTML reports. Props to Tom MacWright @tmcw for a fantastic job!\n\n* [Features and use cases](#features)\n* [Getting started and configuration](#getting-started)\n* [Usage on Windows](#usage-on-windows)\n* [The command line](#the-command-line)\n* [Ignoring code for coverage](#ignoring-code-for-coverage)\n* [API](#api)\n* [Changelog](https://github.com/gotwarlost/istanbul/blob/master/CHANGELOG.md)\n* [License and credits](#license)\n\n### Features\n\n* All-javascript instrumentation library that tracks **statement, branch,\nand function coverage**.\n* **Module loader hooks** to instrument code on the fly\n* **Command line tools** to run node unit tests \"with coverage turned on\" and no cooperation\nwhatsoever from the test runner\n* Multiple report formats: **HTML**, **LCOV**, **Cobertura** and more.\n* Ability to use as [middleware](https://github.com/gotwarlost/istanbul-middleware) when serving JS files that need to be tested on the browser.\n* Can be used on the **command line** as well as a **library**\n* Based on the awesome `esprima` parser and the equally awesome `escodegen` code generator\n* Well-tested on node (prev, current and next versions) and the browser (instrumentation library only)\n\n### Use cases\n\nSupports the following use cases and more\n\n* transparent coverage of nodejs unit tests\n* instrumentation/ reporting of files in batch mode for browser tests\n* Server side code coverage for nodejs by embedding it as [custom middleware](https://github.com/gotwarlost/istanbul-middleware)\n\n### Getting started\n\n $ npm install -g istanbul\n\nThe best way to see it in action is to run node unit tests. Say you have a test\nscript `test.js` that runs all tests for your node project without coverage.\n\nSimply:\n\n $ cd /path/to/your/source/root\n $ istanbul cover test.js\n\nand this should produce a `coverage.json`, `lcov.info` and `lcov-report/*html` under `./coverage`\n\nSample of code coverage reports produced by this tool (for this tool!):\n\n[HTML reports](http://gotwarlost.github.com/istanbul/public/coverage/lcov-report/index.html)\n\n### Usage on Windows\n\nIstanbul assumes that the `command` passed to it is a JS file (e.g. Jasmine, vows etc.),\nthis is however not true on Windows where npm wrap bin files in a `.cmd` file.\nSince Istanbul can not parse `.cmd` files you need to reference the bin file manually.\n\nHere is an example using Jasmine 2:\n\n istanbul cover node_modules\\jasmine\\bin\\jasmine.js\n\nIn order to use this cross platform (e.i. Linux, Mac and Windows), you can insert\nthe above line into the script object in your package.json file but with normal\nslash.\n\n \"scripts\": {\n \"test\": \"istanbul cover node_modules/jasmine/bin/jasmine.js\"\n }\n\n### Configuring\n\nDrop a `.istanbul.yml` file at the top of the source tree to configure istanbul.\n`istanbul help config` tells you more about the config file format.\n\n### The command line\n\n $ istanbul help\n\ngives you detailed help on all commands.\n\n```\nUsage: istanbul help config | <command>\n\n`config` provides help with istanbul configuration\n\nAvailable commands are:\n\n check-coverage\n checks overall/per-file coverage against thresholds from coverage\n JSON files. Exits 1 if thresholds are not met, 0 otherwise\n\n\n cover transparently adds coverage information to a node command. Saves\n coverage.json and reports at the end of execution\n\n\n help shows help\n\n\n instrument\n instruments a file or a directory tree and writes the\n instrumented code to the desired output location\n\n\n report writes reports for coverage JSON objects produced in a previous\n run\n\n\n test cover a node command only when npm_config_coverage is set. Use in\n an `npm test` script for conditional coverage\n\n\nCommand names can be abbreviated as long as the abbreviation is unambiguous\n```\n\nTo get detailed help for a command and what command-line options it supports, run:\n\n istanbul help <command>\n\n(Most of the command line options are not covered in this document.)\n\n#### The `cover` command\n\n $ istanbul cover my-test-script.js -- my test args\n # note the -- between the command name and the arguments to be passed\n\nThe `cover` command can be used to get a coverage object and reports for any arbitrary\nnode script. By default, coverage information is written under `./coverage` - this\ncan be changed using command-line options.\n\nThe `cover` command can also be passed an optional `--handle-sigint` flag to\nenable writing reports when a user triggers a manual SIGINT of the process that is\nbeing covered. This can be useful when you are generating coverage for a long lived process.\n\n#### The `test` command\n\nThe `test` command has almost the same behavior as the `cover` command, except that\nit skips coverage unless the `npm_config_coverage` environment variable is set.\n\n**This command is deprecated** since the latest versions of npm do not seem to\nset the `npm_config_coverage` variable.\n\n#### The `instrument` command\n\nInstruments a single JS file or an entire directory tree and produces an output\ndirectory tree with instrumented code. This should not be required for running node\nunit tests but is useful for tests to be run on the browser.\n\n#### The `report` command\n\nWrites reports using `coverage*.json` files as the source of coverage information.\nReports are available in multiple formats and can be individually configured\nusing the istanbul config file. See `istanbul help report` for more details.\n\n#### The `check-coverage` command\n\nChecks the coverage of statements, functions, branches, and lines against the\nprovided thresholds. Positive thresholds are taken to be the minimum percentage\nrequired and negative numbers are taken to be the number of uncovered entities\nallowed.\n\n### Ignoring code for coverage\n\n* Skip an `if` or `else` path with `/* istanbul ignore if */` or `/* istanbul ignore else */` respectively.\n* For all other cases, skip the next 'thing' in the source with: `/* istanbul ignore next */`\n\nSee [ignoring-code-for-coverage.md](ignoring-code-for-coverage.md) for the spec.\n\n\n### API\n\nAll the features of istanbul can be accessed as a library.\n\n#### Instrument code\n\n```javascript\n var istanbul = require('istanbul');\n var instrumenter = new istanbul.Instrumenter();\n\n var generatedCode = instrumenter.instrumentSync('function meaningOfLife() { return 42; }',\n 'filename.js');\n```\n\n#### Generate reports given a bunch of coverage JSON objects\n\n```javascript\n var istanbul = require('istanbul'),\n collector = new istanbul.Collector(),\n reporter = new istanbul.Reporter(),\n sync = false;\n\n collector.add(obj1);\n collector.add(obj2); //etc.\n\n reporter.add('text');\n reporter.addAll([ 'lcov', 'clover' ]);\n reporter.write(collector, sync, function () {\n console.log('All reports generated');\n });\n```\n\nFor the gory details consult the [public API](http://gotwarlost.github.com/istanbul/public/apidocs/index.html)\n\n\n### Multiple Process Usage\n\nIstanbul can be used in a multiple process environment by running each process\nwith Istanbul, writing a unique coverage file for each process, and combining\nthe results when generating reports. The method used to perform this will\ndepend on the process forking API used. For example when using the\n[cluster module](http://nodejs.org/api/cluster.html) you must setup the master\nto start child processes with Istanbul coverage, disable reporting, and output\ncoverage files that include the PID in the filename. Before each run you may\nneed to clear out the coverage data directory.\n\n```javascript\n if(cluster.isMaster) {\n // setup cluster if running with istanbul coverage\n if(process.env.running_under_istanbul) {\n // use coverage for forked process\n // disabled reporting and output for child process\n // enable pid in child process coverage filename\n cluster.setupMaster({\n exec: './node_modules/.bin/istanbul',\n args: [\n 'cover', '--report', 'none', '--print', 'none', '--include-pid',\n process.argv[1], '--'].concat(process.argv.slice(2))\n });\n }\n // ...\n // ... cluster.fork();\n // ...\n } else {\n // ... worker code\n }\n```\n\n### Coverage.json\n\nFor details on the format of the coverage.json object, [see here](./coverage.json.md).\n\n### License\n\nistanbul is licensed under the [BSD License](http://github.com/gotwarlost/istanbul/raw/master/LICENSE).\n\n### Third-party libraries\n\nThe following third-party libraries are used by this module:\n\n* abbrev: https://github.com/isaacs/abbrev-js - to handle command abbreviations\n* async: https://github.com/caolan/async - for parallel instrumentation of files\n* escodegen: https://github.com/Constellation/escodegen - for JS code generation\n* esprima: https://github.com/ariya/esprima - for JS parsing\n* glob: https://github.com/isaacs/node-glob - for loading and matching path expressions\n* handlebars: https://github.com/wycats/handlebars.js/ - for report template expansion\n* js-yaml: https://github.com/nodeca/js-yaml - for YAML config file load\n* mkdirp: https://github.com/substack/node-mkdirp - to create output directories\n* nodeunit: https://github.com/caolan/nodeunit - dev dependency for unit tests\n* nopt: https://github.com/isaacs/nopt - for option parsing\n* once: https://github.com/isaacs/once - to ensure callbacks are called once\n* resolve: https://github.com/substack/node-resolve - for resolving a post-require hook module name into its main file.\n* rimraf - https://github.com/isaacs/rimraf - dev dependency for unit tests\n* which: https://github.com/isaacs/node-which - to resolve a node command to a file for the `cover` command\n* wordwrap: https://github.com/substack/node-wordwrap - for prettier help\n* prettify: http://code.google.com/p/google-code-prettify/ - for syntax colored HTML reports. Files checked in under `lib/vendor/`\n\n### Inspired by\n\n* YUI test coverage - https://github.com/yui/yuitest - the grand-daddy of JS coverage tools. Istanbul has been specifically designed to offer an alternative to this library with an easy migration path.\n* cover: https://github.com/itay/node-cover - the inspiration for the `cover` command, modeled after the `run` command in that tool. The coverage methodology used by istanbul is quite different, however\n\n### Shout out to\n\n * [mfncooper](https://github.com/mfncooper) - for great brainstorming discussions\n * [reid](https://github.com/reid), [davglass](https://github.com/davglass), the YUI dudes, for interesting conversations, encouragement, support and gentle pressure to get it done :)\n\n### Why the funky name?\n\nSince all the good ones are taken. Comes from the loose association of ideas across\ncoverage, carpet-area coverage, the country that makes good carpets and so on...\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/gotwarlost/istanbul.git"
},
"scripts": {
"docs": "npm install yuidocjs && node node_modules/yuidocjs/lib/cli.js .",
"posttest": "node ./lib/cli.js check-coverage --statements 95 --branches 80",
"pretest": "jshint index.js lib/ test/ && ./download-escodegen-browser.sh",
"test": "node --harmony test/run.js"
},
"version": "0.4.5"
}