Skip to content

Commit 15e94f5

Browse files
committed
chore: add size-limit and add semantic-relase to README
1 parent 28aa14c commit 15e94f5

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
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: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"test": "mocha --compilers js:babel-core/register --recursive",
1111
"test:watch": "npm test -- --watch",
1212
"lint": "eslint src/ test/",
13-
"precommit": "lint-staged"
13+
"precommit": "lint-staged",
14+
"size": "size-limit",
15+
"size:why": "size-limit --why"
1416
},
1517
"repository": {
1618
"type": "git",
@@ -22,7 +24,7 @@
2224
"tag",
2325
"attribute",
2426
"attr",
25-
"accpet",
27+
"accept",
2628
"file"
2729
],
2830
"author": "Andrey Okonetchnikov @okonetchnikov",
@@ -55,6 +57,7 @@
5557
"lint-staged": "^4.1.3",
5658
"mocha": "^3.5.0",
5759
"prettier": "^1.6.1",
60+
"size-limit": "^0.14.0",
5861
"webpack": "^3.5.5"
5962
},
6063
"engines": {
@@ -70,5 +73,11 @@
7073
"eslint --fix",
7174
"git add"
7275
]
73-
}
76+
},
77+
"size-limit": [
78+
{
79+
"path": "dist/index.js",
80+
"limit": "2 KB"
81+
}
82+
]
7483
}

0 commit comments

Comments
 (0)