Skip to content

Commit fc79348

Browse files
committed
size-limit
1 parent 5369492 commit fc79348

File tree

2 files changed

+3057
-84
lines changed

2 files changed

+3057
-84
lines changed

package.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
},
3333
"dependencies": {},
3434
"devDependencies": {
35+
"@size-limit/preset-small-lib": "^2.1.1",
3536
"babel-core": "^6.26.3",
3637
"babel-plugin-external-helpers": "^6.22.0",
3738
"babel-preset-env": "^1.7.0",
@@ -53,6 +54,7 @@
5354
"rollup-plugin-babel": "^3.0.4",
5455
"run-when-changed": "^2.1.0",
5556
"serve": "^1.4.0",
57+
"size-limit": "^2.1.1",
5658
"uglify-js": "^3.4.0"
5759
},
5860
"main": "hammer.js",
@@ -71,6 +73,12 @@
7173
"watch": "run-when-changed --watch 'src/**/*.js' --watch 'tests/unit/*.js' --watch 'tests/unit/gestures/*.js' --exec 'yarn run watch-tasks'",
7274
"watch-tasks": "yarn run rollup && yarn run string-replace && yarn run uglify && yarn run jshint && yarn run jscs",
7375
"build": "yarn run rollup && yarn run string-replace && yarn run uglify && yarn run bannerize",
74-
"test": "yarn run build && yarn run jshint && yarn run jscs && yarn run qunit"
75-
}
76+
"test": "yarn run build && yarn run jshint && yarn run jscs && yarn run qunit",
77+
"size": "size-limit"
78+
},
79+
"size-limit": [
80+
{
81+
"path": "hammer.js"
82+
}
83+
]
7684
}

0 commit comments

Comments
 (0)