Skip to content

Commit 24a4279

Browse files
docs: add badges in README
2 parents d5cb40e + a5ae4d9 commit 24a4279

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"zapp",
3232
"zipp",
3333
"zippi",
34-
"zizizi"
34+
"zizizi",
35+
"codecov"
3536
],
3637
"ignorePaths": ["package.json", "yarn.lock", "coverage", "*.log"]
3738
}

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# enhanced-resolve
22

3+
[![npm][npm]][npm-url]
4+
[![Build Status][build-status]][build-status-url]
5+
[![codecov][codecov-badge]][codecov-url]
6+
[![Install Size][size]][size-url]
7+
[![GitHub Discussions][discussion]][discussion-url]
8+
39
Offers an async require.resolve function. It's highly configurable.
410

511
## Features
@@ -146,8 +152,6 @@ enhanced-resolve will try to resolve requests containing `#` as path and as frag
146152
yarn test
147153
```
148154

149-
[![Build Status](https://secure.travis-ci.org/webpack/enhanced-resolve.png?branch=main)](http://travis-ci.org/webpack/enhanced-resolve)
150-
151155
## Passing options from webpack
152156

153157
If you are using `webpack`, and you want to pass custom options to `enhanced-resolve`, the options are passed from the `resolve` key of your webpack configuration e.g.:
@@ -166,3 +170,14 @@ resolve: {
166170
Copyright (c) 2012-2019 JS Foundation and other contributors
167171

168172
MIT (http://www.opensource.org/licenses/mit-license.php)
173+
174+
[npm]: https://img.shields.io/npm/v/enhanced-resolve.svg
175+
[npm-url]: https://www.npmjs.com/package/enhanced-resolve
176+
[build-status]: https://github.com/webpack/enhanced-resolve/actions/workflows/test.yml/badge.svg?branch=master
177+
[build-status-url]: https://github.com/webpack/enhanced-resolve/actions
178+
[codecov-badge]: https://codecov.io/gh/webpack/enhanced-resolve/branch/main/graph/badge.svg?token=6B6NxtsZc3
179+
[codecov-url]: https://codecov.io/gh/webpack/enhanced-resolve
180+
[size]: https://packagephobia.com/badge?p=enhanced-resolve
181+
[size-url]: https://packagephobia.com/result?p=enhanced-resolve
182+
[discussion]: https://img.shields.io/github/discussions/webpack/webpack
183+
[discussion-url]: https://github.com/webpack/webpack/discussions

0 commit comments

Comments
 (0)