Skip to content

Commit 06cf5de

Browse files
authored
Merge pull request #23 from rkmarks/master
Add size-limit
2 parents d1c7cde + 78667e6 commit 06cf5de

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ node_modules
3232
# Build files
3333
dist
3434
Changelog.md
35+
36+
# NPM files
37+
*lock.json

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ JavaScript implementation of the "accept" attribute for HTML5 `<input type="file
33

44
[![Build Status](https://travis-ci.org/okonet/attr-accept.svg?branch=master)](https://travis-ci.org/okonet/attr-accept)
55
[![npm version](https://badge.fury.io/js/attr-accept.svg)](https://badge.fury.io/js/attr-accept)
6+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
67

78
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#Attributes for more information.
89

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"test:watch": "npm test -- --watch",
1212
"lint": "eslint src/ test/",
1313
"precommit": "lint-staged",
14+
"size": "size-limit",
15+
"size:why": "size-limit --why",
1416
"travis-deploy-once": "travis-deploy-once"
1517
},
1618
"repository": {
@@ -23,7 +25,7 @@
2325
"tag",
2426
"attribute",
2527
"attr",
26-
"accpet",
28+
"accept",
2729
"file"
2830
],
2931
"author": "Andrey Okonetchnikov @okonetchnikov",
@@ -56,6 +58,7 @@
5658
"lint-staged": "^4.1.3",
5759
"mocha": "^3.5.0",
5860
"prettier": "^1.6.1",
61+
"size-limit": "^0.14.0",
5962
"travis-deploy-once": "^4.3.4",
6063
"webpack": "^3.5.5"
6164
},
@@ -72,5 +75,11 @@
7275
"eslint --fix",
7376
"git add"
7477
]
75-
}
78+
},
79+
"size-limit": [
80+
{
81+
"path": "dist/index.js",
82+
"limit": "2 KB"
83+
}
84+
]
7685
}

0 commit comments

Comments
 (0)