From 4c54a9265a92785825db976431a1e25599204029 Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Sat, 1 Jul 2017 19:03:17 +0530 Subject: [PATCH] Add bundlesize to test --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8b3baa..39f3276 100644 --- a/package.json +++ b/package.json @@ -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" + } + ] }