Skip to content

Commit

Permalink
Added some badges
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Feb 10, 2017
1 parent 7064c2b commit 2e73aea
Show file tree
Hide file tree
Showing 6 changed files with 994 additions and 33 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ insert_final_newline = true
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ test/fixtures/css/main.158f2990.css
test/fixtures/bower_components/bootstrap/dist/css/bootstrap.0151e5ef.css
test/fixtures/css/cartoon.64faf7bc.css

.nyc_output
coverage

2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ node_js:
- "6"
- "5"
- "4"
after_success:
- npm run coveralls
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
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.

[![build status](https://api.travis-ci.org/bezoerb/inline-critical.svg?branch=master)](http://travis-ci.org/bezoerb/inline-critical)
[![Build status](https://ci.appveyor.com/api/projects/status/qb9esocjkpp6hw3q/branch/master?svg=true)](https://ci.appveyor.com/project/bezoerb/inline-critical/branch/master)

[![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]

## Installation

Expand Down Expand Up @@ -73,3 +71,21 @@ Run `inline-critical --help` to see the list of options.
## License

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
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Inline critical-path css and load the existing stylesheets asynchronously",
"main": "index.js",
"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": [
"index.js",
Expand Down Expand Up @@ -47,8 +49,11 @@
"devDependencies": {
"chai": "3.5.0",
"concat-stream": "1.6.0",
"coveralls": "2.11.16",
"mocha": "3.2.0",
"mockery": "2.0.0",
"nsp": "2.6.2",
"nyc": "10.1.2",
"read-package-json": "2.0.4",
"xo": "0.17.1"
},
Expand All @@ -63,6 +68,6 @@
]
},
"engines": {
"node": ">=4.0"
"node": ">= 4"
}
}
Loading

0 comments on commit 2e73aea

Please sign in to comment.