Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 6bde995

Browse files
hugomrdiasAlan Shaw
authored and
Alan Shaw
committed
chore: add bundle size checks and badge (#2221)
* chore: add bundle size checks and badge * chore: add bundle size max value
1 parent 26b92a1 commit 6bde995

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.aegir.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const ipfsdServer = IPFSFactory.createServer()
88
const preloadNode = MockPreloadNode.createNode()
99

1010
module.exports = {
11+
bundlesize: { maxSize: '881kB' },
1112
webpack: {
1213
resolve: {
1314
mainFields: ['browser', 'main'],

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codeco
2323

2424
jobs:
2525
include:
26+
- os: windows
27+
filter_secrets: false
28+
cache: false
29+
2630
- stage: check
2731
script:
32+
- npx aegir build --bundlesize
2833
- npx aegir dep-check -- -i wrtc -i electron-webrtc
2934
- npm run lint
3035

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<p align="center">
1818
<a href="https://travis-ci.com/ipfs/js-ipfs"><img src="https://badgen.net/travis/ipfs/js-ipfs" /></a>
1919
<a href="https://codecov.io/gh/ipfs/js-ipfs"><img src="https://badgen.net/codecov/c/github/ipfs/js-ipfs" /></a>
20+
<a href="https://bundlephobia.com/result?p=ipfs"><img src="https://flat.badgen.net/bundlephobia/minzip/ipfs"></a>
2021
<a href="https://david-dm.org/ipfs/js-ipfs"><img src="https://david-dm.org/ipfs/js-ipfs.svg?style=flat" /></a>
2122
<a href="https://github.com/feross/standard"><img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat"></a>
2223
<a href=""><img src="https://img.shields.io/badge/npm-%3E%3D6.0.0-orange.svg?style=flat" /></a>

0 commit comments

Comments
 (0)