Added some badges

This commit is contained in:
Ben Zörb 2017-02-10 17:09:46 +01:00
parent 7064c2bf90
commit 2e73aea568
6 changed files with 994 additions and 33 deletions

View File

@ -12,5 +12,9 @@ insert_final_newline = true
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
[*.yml]
indent_style = space
indent_size = 2
[*.md] [*.md]
trim_trailing_whitespace = false trim_trailing_whitespace = false

3
.gitignore vendored
View File

@ -7,3 +7,6 @@ test/fixtures/css/main.158f2990.css
test/fixtures/bower_components/bootstrap/dist/css/bootstrap.0151e5ef.css test/fixtures/bower_components/bootstrap/dist/css/bootstrap.0151e5ef.css
test/fixtures/css/cartoon.64faf7bc.css test/fixtures/css/cartoon.64faf7bc.css
.nyc_output
coverage

View File

@ -5,3 +5,5 @@ node_js:
- "6" - "6"
- "5" - "5"
- "4" - "4"
after_success:
- npm run coveralls

View File

@ -3,9 +3,7 @@
Inline critical-path css and load the existing stylesheets asynchronously. Inline critical-path css and load the existing stylesheets asynchronously.
Existing link tags will also be wrapped in ```<noscript>``` so the users with javscript disabled will see the site rendered normally. Existing link tags will also be wrapped in ```<noscript>``` so the users with javscript disabled will see the site rendered normally.
[![build status](https://api.travis-ci.org/bezoerb/inline-critical.svg?branch=master)](http://travis-ci.org/bezoerb/inline-critical) [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build Status][appveyor-image]][appveyor-url] [![Dependency Status][depstat-image]][depstat-url] [![Download][dlcounter-image]][dlcounter-url] [![Coverage Status][coveralls-image]][coveralls-url]
[![Build status](https://ci.appveyor.com/api/projects/status/qb9esocjkpp6hw3q/branch/master?svg=true)](https://ci.appveyor.com/project/bezoerb/inline-critical/branch/master)
## Installation ## Installation
@ -73,3 +71,21 @@ Run `inline-critical --help` to see the list of options.
## License ## License
MIT MIT
[npm-url]: https://npmjs.org/package/inline-critical
[npm-image]: https://badge.fury.io/js/inline-critical.svg
[travis-url]: https://travis-ci.org/bezoerb/inline-critical
[travis-image]: https://secure.travis-ci.org/bezoerb/inline-critical.svg?branch=master
[appveyor-url]: https://ci.appveyor.com/project/bezoerb/inline-critical/branch/master
[appveyor-image]: https://ci.appveyor.com/api/projects/status/qb9esocjkpp6hw3q/branch/master?svg=true
[depstat-url]: https://david-dm.org/bezoerb/inline-critical
[depstat-image]: https://david-dm.org/bezoerb/inline-critical.svg
[dlcounter-url]: https://www.npmjs.com/package/inline-critical
[dlcounter-image]: https://img.shields.io/npm/dm/inline-critical.svg
[coveralls-url]: https://coveralls.io/github/bezoerb/inline-critical?branch=master
[coveralls-image]: https://coveralls.io/repos/github/bezoerb/inline-critical/badge.svg?branch=master

View File

@ -4,7 +4,9 @@
"description": "Inline critical-path css and load the existing stylesheets asynchronously", "description": "Inline critical-path css and load the existing stylesheets asynchronously",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "xo && mocha test/index.js --timeout 5000" "test": "xo && nyc mocha test/index.js --timeout 5000",
"prepublish": "nsp check",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
}, },
"files": [ "files": [
"index.js", "index.js",
@ -47,8 +49,11 @@
"devDependencies": { "devDependencies": {
"chai": "3.5.0", "chai": "3.5.0",
"concat-stream": "1.6.0", "concat-stream": "1.6.0",
"coveralls": "2.11.16",
"mocha": "3.2.0", "mocha": "3.2.0",
"mockery": "2.0.0", "mockery": "2.0.0",
"nsp": "2.6.2",
"nyc": "10.1.2",
"read-package-json": "2.0.4", "read-package-json": "2.0.4",
"xo": "0.17.1" "xo": "0.17.1"
}, },
@ -63,6 +68,6 @@
] ]
}, },
"engines": { "engines": {
"node": ">=4.0" "node": ">= 4"
} }
} }

987
yarn.lock

File diff suppressed because it is too large Load Diff