2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Add bundlesize to test

This commit is contained in:
Siddharth Kshetrapal
2017-07-01 19:03:17 +05:30
committed by GitHub
parent 46e275c407
commit 4c54a9265a
+9 -2
View File
@@ -4,7 +4,7 @@
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"scripts": {
"test": "grunt test",
"test": "grunt test && bundlesize",
"start": "node ./sandbox/server.js",
"build": "NODE_ENV=production grunt build",
"preversion": "npm test",
@@ -31,6 +31,7 @@
},
"homepage": "https://github.com/mzabriskie/axios",
"devDependencies": {
"bundlesize": "^0.5.7",
"coveralls": "^2.11.9",
"es6-promise": "^4.0.5",
"grunt": "^1.0.1",
@@ -74,5 +75,11 @@
"dependencies": {
"follow-redirects": "^1.2.3",
"is-buffer": "^1.1.5"
}
},
"bundlesize": [
{
"path": "./dist/axios.min.js",
"threshold": "5kB"
}
]
}