From 5e1b24b4d2a811a02ae7b6449d4f0de778bbe4ef Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Thu, 8 Jan 2015 05:28:17 +0900 Subject: [PATCH 1/3] update dotfiles * remove unnecessary globals from .jshintrc * remove unnecessary .npmignore * use container-based infrastructure on Travis CI --- .jshintrc | 10 +--------- .npmignore | 9 --------- .travis.yml | 1 + 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 .npmignore diff --git a/.jshintrc b/.jshintrc index d24c5b6e..727d54a8 100644 --- a/.jshintrc +++ b/.jshintrc @@ -15,13 +15,5 @@ "undef": true, "unused": true, "node": true, - "mocha": true, - "globals": { - "describe": false, - "it": false, - "before": false, - "beforeEach": false, - "after": false, - "afterEach": false - } + "mocha": true } diff --git a/.npmignore b/.npmignore deleted file mode 100644 index a559358c..00000000 --- a/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -.DS_Store -*.log -node_modules -build -*.node -*.orig -.idea -sandbox -coverage diff --git a/.travis.yml b/.travis.yml index dfec605d..c9a9b615 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: false language: node_js node_js: - "0.10" From fb1a0fa6bf4028f54629014f89fee0dd148945b6 Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Thu, 8 Jan 2015 05:30:13 +0900 Subject: [PATCH 2/3] use sag badges instead of png badges SVG badges look beautiful on retina displays. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f5d4c564..e9b5ffa7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# vinyl-fs [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status](https://david-dm.org/wearefractal/vinyl.png?theme=shields.io)](https://david-dm.org/wearefractal/vinyl-fs) +# vinyl-fs [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] ## Information @@ -110,11 +110,11 @@ This is just [glob-watcher] [glob-watcher]: https://github.com/wearefractal/glob-watcher [vinyl]: https://github.com/wearefractal/vinyl -[npm-url]: https://npmjs.org/package/vinyl-fs -[npm-image]: https://badge.fury.io/js/vinyl-fs.png +[npm-url]: https://www.npmjs.com/package/vinyl-fs +[npm-image]: https://badge.fury.io/js/vinyl-fs.svg [travis-url]: https://travis-ci.org/wearefractal/vinyl-fs -[travis-image]: https://travis-ci.org/wearefractal/vinyl-fs.png?branch=master +[travis-image]: https://travis-ci.org/wearefractal/vinyl-fs.svg?branch=master [coveralls-url]: https://coveralls.io/r/wearefractal/vinyl-fs -[coveralls-image]: https://coveralls.io/repos/wearefractal/vinyl-fs/badge.png +[coveralls-image]: https://img.shields.io/coveralls/wearefractal/vinyl-fs.svg?style=flat [depstat-url]: https://david-dm.org/wearefractal/vinyl-fs -[depstat-image]: https://david-dm.org/wearefractal/vinyl-fs.png +[depstat-image]: https://david-dm.org/wearefractal/vinyl-fs.svg From 87c36ede9da5e1508e62a984da4ebc9c8412f6d2 Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Thu, 8 Jan 2015 05:30:58 +0900 Subject: [PATCH 3/3] introduce istanbul-coveralls https://github.com/shinnn/istanbul-coveralls --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0feb1f18..a0cb546d 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "buffer-equal": "^0.0.1", "coveralls": "^2.6.1", "istanbul": "^0.3.0", + "istanbul-coveralls": "^1.0.1", "jshint": "^2.4.1", "mocha": "^2.0.0", "mocha-lcov-reporter": "^0.0.1", @@ -32,8 +33,8 @@ "sinon": "^1.10.3" }, "scripts": { - "test": "mocha --reporter spec && jshint lib", - "coveralls": "istanbul cover _mocha -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage" + "test": "jshint lib && mocha", + "coveralls": "istanbul cover _mocha && istanbul-coveralls" }, "engines": { "node": ">= 0.10"