Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jan 29, 2017
1 parent bb8dd5a commit 3b19a80
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 55 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
@@ -0,0 +1,23 @@
# editorconfig.org
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Use tabs in JavaScript and JSON.
[**.{js, json}]
indent_style = tab
indent_size = 4

# Because if npm 🙄
[package.json]
indent_style = spaces
indent_size = 2

# Use spaces in YAML.
[**.{yml,yaml}]
indent_style = spaces
indent_size = 2
8 changes: 6 additions & 2 deletions .gitignore
@@ -1,2 +1,6 @@
node_modules/
img/
.DS_Store
Thumbs.db

.nvm-version
node_modules
npm-debug.log
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

39 changes: 6 additions & 33 deletions README.md
@@ -1,49 +1,22 @@
# tap-min

Minimal TAP output formatter.
**Minimal [TAP](https://en.wikipedia.org/wiki/Test_Anything_Protocol) output formatter.**

[![build status](https://img.shields.io/travis/derhuerst/tap-min.svg)](https://travis-ci.org/derhuerst/tap-min)

## Installation

~~~ text
npm install -g tap-min
npm install tap-min --save-dev
~~~
```shell
npm install --save-dev tap-min
```

## Usage

~~~ text
```shell
tape test/*.js | tap-min
node test.js | tap-min
~~~

## Output
```

![tap-min](http://i.imgur.com/x7G4thJ.png)

![tap-min](http://i.imgur.com/dgII7bF.png)

## License

The MIT License (MIT)

Copyright (c) 2014 Ellen Gummesson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
1 change: 0 additions & 1 deletion bin/tap-min
@@ -1,5 +1,4 @@
#!/usr/bin/env node
process.on('uncaughtException', console.error)

const min = require('..')
const stream = min()
Expand Down
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -8,7 +8,7 @@ const ms = require('pretty-ms')
const chalk = require('chalk')
const util = require('util')

module.exports = () => {
const reporter = () => {
const onResults = (data) => {
const time = timer()
const msg = `${data.count} ${data.count > 1 ? 'tests' : 'test'} complete (${ms(time)})`
Expand Down Expand Up @@ -45,3 +45,5 @@ module.exports = () => {

return result
}

module.exports = reporter
18 changes: 6 additions & 12 deletions package.json
Expand Up @@ -2,32 +2,26 @@
"name": "tap-min",
"version": "1.1.0",
"description": "Minimal TAP output formatter.",
"bin": {
"tap-min": "bin/tap-min"
},
"bin": "bin/tap-min",
"files": ["index.js", "bin/tap-min"],
"scripts": {
"test": "npm run test:ok && npm run test:not-ok && npm run test:empty",
"test:ok": "cat test/ok.txt | ./bin/tap-min > /dev/null; exit $?",
"test:not-ok": "cat test/not-ok.txt | ./bin/tap-min > /dev/null || exit 0; exit 1",
"test:empty": "echo '' | ./bin/tap-min > /dev/null || exit 0; exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/gummesson/tap-min.git"
},
"repository": "derhuerst/tap-min",
"keywords": [
"test",
"tap",
"tape",
"mocha",
"reporter"
],
"author": "Ellen Gummesson",
"author": "Jannis R <mail@jannisr.de>",
"license": "MIT",
"bugs": {
"url": "https://github.com/gummesson/tap-min/issues"
},
"homepage": "https://github.com/gummesson/tap-min",
"bugs": "https://github.com/derhuerst/tap-min/issues",
"homepage": "https://github.com/derhuerst/tap-min",
"dependencies": {
"readable-stream": "^2.2.2",
"duplexer3": "^0.1.4",
Expand Down

0 comments on commit 3b19a80

Please sign in to comment.